Function at 0x402990
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x402c
call fcn.00416240
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x4029c3
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414edc
mov esp, ebp
pop ebp
ret
push 0x2000
lea eax, [ebp - 0x2008]
mov byte [ebp - 0x4009], 1
push 0
push eax
call fcn.0042d530
add esp, 0xc
lea eax, [ebp - 0x4008]
push 0x2000
push 0
push eax
call fcn.0042d530
add esp, 0xc
lea eax, [ebp - 0x2008]
push esi
push 0x45cd34
push 0x1000
push eax
call fcn.004011f0
xor eax, eax
lea edi, [ebp - 0x4008]
mov ecx, 0x800
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4008]
mov edx, 0x45cd50
push 0x1000
push eax
push ecx
lea ecx, [ebp - 0x2008]
call fcn.00402fb0
add esp, 0xc
lea eax, [ebp - 0x4008]
push eax
lea eax, [ebp - 0x2008]
push 0x1000
push eax
call fcn.00434f1a
add esp, 0xc
lea edi, [ebp - 0x4008]
xor eax, eax
mov ecx, 0x800
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2008]
push 0x45cd3c
push eax
call fcn.0042c3db
add esp, 8
test eax, eax
jne 0x402aa3
push 0x1000
lea eax, [ebp - 0x4008]
mov edx, 0x45cd48
push eax
push ecx
lea ecx, [ebp - 0x2008]
call fcn.00402fb0
add esp, 0xc
jmp 0x402ac3
lea eax, [ebp - 0x2008]
push eax
push 0x45cd34
lea eax, [ebp - 0x4008]
push 0x1000
push eax
call fcn.004011f0
add esp, 0x10
lea eax, [ebp - 0x4008]
push eax
lea eax, [ebp - 0x2008]
push 0x1000
push eax
call fcn.00434f1a
lea ecx, [ebp - 0x2008]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ae7
sub ecx, edx
mov edx, 2
sar ecx, 1
lea ebx, [ecx + 1]
xor ecx, ecx
mov eax, ebx
mov dword [ebp - 0x4010], ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004154c4
add esp, 4
mov esi, eax
lea eax, [ebx + ebx]
push eax
push 0
push esi
call fcn.0042d530
mov ax, word [ebp - 0x2008]
lea ebx, [ebp - 0x2008]
xor ecx, ecx
add esp, 0xc
cmp cx, ax
je 0x402c4c
movzx ecx, ax
xor edi, edi
mov edx, 0x5c
cmp dx, cx
jne 0x402c2d
mov eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x2008]
push eax
push dword [ebp - 0x4010]
push esi
call fcn.00437807
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b76
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x402c2d
push esi
push 0x45cd34
lea eax, [ebp - 0x4008]
push 0x1000
push eax
call fcn.004011f0
lea eax, [ebp - 0x4008]
push 0x45cd3c
push eax
call fcn.0042c3db
add esp, 0x18
test eax, eax
je 0x402bda
lea eax, [ebp - 0x4008]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402bc6
sub eax, edx
sar eax, 1
cmp eax, 0x30
jbe 0x402c2d
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x402c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x402c0d
lea eax, [ebp - 0x402c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x402c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
lea eax, [ebp - 0x4008]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402c2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402c45
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
add edi, 2
mov ecx, eax
cmp dx, ax
je 0x402c4c
jmp 0x402b48
mov byte [ebp - 0x4009], 0
push esi
call fcn.00414eed
mov bl, byte [ebp - 0x4009]
add esp, 4
test bl, bl
je 0x402ce1
lea eax, [ebp - 0x2008]
push 0x45cd3c
push eax
call fcn.0042c3db
test eax, eax
mov edx, 0x45cd34
lea eax, [ebp - 0x2008]
mov ecx, str.__s
push eax
cmovne ecx, edx
lea eax, [ebp - 0x4008]
push ecx
push 0x1000
push eax
call fcn.004011f0
add esp, 0x18
lea eax, [ebp - 0x402c]
push 1
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x402cd2
lea eax, [ebp - 0x402c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x402c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
lea eax, [ebp - 0x4008]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414edc
mov esp, ebp
pop ebp
ret