Function at 0x402d70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429d10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1130
call fcn.0040eb70
mov eax, dword [0x4382d4]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x111c], ebx
xor eax, eax
mov byte [ebp - 0x118], 0
mov ecx, 0x40
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 0x14]
push 0x104
add eax, 0x185
xor esi, esi
push eax
lea ecx, [ebp - 0x118]
push ecx
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x11c], 0
mov dword [ebx + 0x244], esi
mov dword [ebx + 0x248], esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea esp, [esp]
mov al, byte [ebp + esi - 0x118]
test al, al
jne 0x403076
xor esi, esi
push esi
lea edx, [ebp - 0x118]
push edx
call edi
mov eax, dword [ebx + 0x14]
push esi
push esi
push 0x4000001
push 1
add eax, 0x289
push eax
lea ecx, [ebx + 0x264]
mov dword [ebp - 4], esi
call fcn.00425770
push 0x1000
lea ecx, [ebp - 0x1118]
mov dword [ebx + 0x25c], eax
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x34]
cmp eax, 7
mov dword [ebp - 0x1128], eax
jae 0x402e76
push 0x432e84
lea edx, [ebp - 0x112c]
push edx
mov dword [ebp - 0x112c], esi
call fcn.0040ec82
cmp eax, 0x16
jae 0x402e92
push 0x432e84
lea eax, [ebp - 0x1138]
push eax
mov dword [ebp - 0x1138], esi
call fcn.0040ec82
push str._html_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebp - 0x1118]
mov esi, str._html_
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x402ec7
push 0x432e84
lea eax, [ebp - 0x1140]
push eax
mov dword [ebp - 0x1140], edx
call fcn.0040ec82
push str.__DOCTYPE_HTML_PUBLIC
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebp - 0x1118]
mov esi, str.__DOCTYPE_HTML_PUBLIC
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x402efc
push 0x432e84
lea eax, [ebp - 0x1134]
push eax
mov dword [ebp - 0x1134], edx
call fcn.0040ec82
push str.__DOCTYPE_HTML_PUBLIC
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebp - 0x1118]
mov esi, str.__DOCTYPE_html_PUBLIC
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x402f31
push 0x432e84
lea eax, [ebp - 0x1120]
push eax
mov dword [ebp - 0x1120], edx
call fcn.0040ec82
push 0
lea ecx, [ebx + 0x248]
push ecx
mov ecx, dword [ebx + 0x25c]
push 0x20000005
call fcn.00424b0b
test eax, eax
jne 0x402f69
push 0x432e74
lea edx, [ebp - 0x113c]
push edx
mov dword [ebp - 0x113c], 3
call fcn.0040ec82
mov eax, dword [ebx + 0x14]
lea ecx, [eax + 0x81]
push ecx
add eax, 0x185
push eax
push str._s_s.DTM
lea edi, [ebx + 0x18]
push 0x104
push edi
call fcn.0040ebc9
mov edx, dword [ebx + 0x24c]
add esp, 0x14
push 0
lea esi, [ebx + 0x24c]
push 0x1002
push edi
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
jne 0x402fc7
push 0x432e74
lea eax, [ebp - 0x1124]
push eax
mov dword [ebp - 0x1124], 2
call fcn.0040ec82
mov edi, dword [ebp - 0x1128]
mov edx, dword [esi]
push edi
lea eax, [ebp - 0x1118]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov edx, dword [ebx + 0x220]
lea esi, [ebx + 0x220]
mov ecx, esi
call dword [edx]
add dword [ebx + 0x244], edi
mov eax, dword [esi]
mov ecx, esi
mov dword [ebx + 0x23c], 2
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov byte [ebx + 0x10], 1
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040e2cf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x5c
jne 0x403095
push 0
lea edx, [ebp - 0x118]
push edx
mov byte [ebp + esi - 0x118], 0
call edi
mov byte [ebp + esi - 0x118], 0x5c
inc esi
jmp 0x402e00