Function at 0x40b9c0
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c54b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2030
call fcn.00419810
mov eax, dword [0x42729c]
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 0x2038], ecx
mov ecx, dword [ebp - 0x2038]
add ecx, 4
call fcn.00418750
test eax, eax
jne 0x40ba16
mov eax, dword [ebp - 0x2038]
movzx ecx, word [eax + 0x10c]
test ecx, ecx
je 0x40ba1b
jmp 0x40be97
push 0x800
push 0
mov edx, dword [ebp - 0x2038]
add edx, 0x10c
push edx
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0x800
push 0
lea eax, [ebp - 0x814]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
cmp dword [0x431a6c], 0
jne 0x40ba7f
cmp dword [0x431a70], 0
jne 0x40ba7f
push 0x428e48
mov ecx, dword [ebp - 0x2038]
add ecx, 0x10c
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
jmp 0x40be97
cmp dword [0x431a70], 0
je 0x40bc6b
movzx edx, word [0x431b90]
test edx, edx
jne 0x40bc4e
lea ecx, [ebp - 0x82c]
call fcn.00417ae0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x824]
call fcn.00418f50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.00419110
mov byte [ebp - 4], 2
mov ecx, 0x432214
call fcn.004188a0
mov dword [ebp - 0x203c], eax
lea ecx, [ebp - 0x828]
call fcn.004191a0
push eax
mov eax, dword [ebp - 0x203c]
push eax
mov ecx, dword [ebp - 0x203c]
mov edx, dword [ecx]
call dword [edx + 0xd0]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x40bb60
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0x828]
call fcn.00419160
push eax
call fcn.00401320
add esp, 8
test eax, eax
jl 0x40bb60
lea ecx, [ebp - 0x82c]
call fcn.00417b90
push eax
mov ecx, dword [ebp - 0x820]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x820]
push eax
call dword [edx + 0xa4]
test eax, eax
jl 0x40bb60
lea ecx, [ebp - 0x82c]
call fcn.00417b50
test eax, eax
jne 0x40bbf2
push 0x1000
push 0x42e6c0
push 0x57
call fcn.00409ba0
add esp, 0xc
mov ecx, dword [ebp - 0x2038]
add ecx, 8
push ecx
push 0x42e6c0
lea edx, [ebp - 0x102c]
push edx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x102c]
push eax
call fcn.00407f40
add esp, 4
cmp dword [ebp - 0x820], 0
je 0x40bbbd
mov ecx, dword [ebp - 0x820]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x820]
push eax
call dword [edx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.00419130
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x824]
call fcn.00418f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x82c]
call fcn.00417b00
jmp 0x40be97
lea ecx, [ebp - 0x82c]
call fcn.00417b70
push eax
push 0x431b90
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
mov ecx, dword [ebp - 0x820]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x820]
push eax
call dword [edx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.00419130
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x824]
call fcn.00418f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x82c]
call fcn.00417b00
push 0x431b90
mov ecx, dword [ebp - 0x2038]
add ecx, 0x10c
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
jmp 0x40bc86
push 0x428e48
mov edx, dword [ebp - 0x2038]
add edx, 0x10c
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
cmp dword [0x431a6c], 0
jne 0x40bc94
jmp 0x40be97
mov eax, dword [ebp - 0x2038]
add eax, 0x10c
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x2038]
add ecx, 8
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
mov dword [ebp - 0x818], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2038]
movzx ecx, word [eax + edx*2 + 0x10a]
cmp ecx, 0x5c
je 0x40bd0a
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2038]
mov word [eax + edx*2 + 0x10c], 0x5c
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2038]
mov word [eax + edx*2 + 0x10c], 0
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x818]
cmp ecx, 0x400
jb 0x40bd20
jmp 0x40be97
mov dword [ebp - 0x1030], 0
jmp 0x40bd3b
mov edx, dword [ebp - 0x1030]
add edx, 1
mov dword [ebp - 0x1030], edx
mov eax, dword [ebp - 0x1030]
cmp eax, dword [ebp - 0x818]
jae 0x40bda2
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x1030]
mov edx, dword [ebp - 0x2038]
mov eax, dword [ebp - 0x1030]
mov esi, dword [ebp - 0x2038]
mov ax, word [esi + eax*2 + 8]
mov word [edx + ecx*2 + 0x10c], ax
mov ecx, dword [ebp - 0x1030]
mov edx, dword [ebp - 0x2038]
movzx eax, word [edx + ecx*2 + 8]
cmp eax, 0x22
jne 0x40bda0
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x1030]
mov edx, dword [ebp - 0x2038]
mov word [edx + ecx*2 + 0x10c], 0x71
jmp 0x40bd2c
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x818]
mov ecx, dword [ebp - 0x2038]
mov word [ecx + eax*2 + 0x10c], 0
push 0x800
push 0
lea edx, [ebp - 0x814]
push edx
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0
push 0
push 0x800
lea eax, [ebp - 0x814]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x2038]
add ecx, 0x10c
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x2038]
add edx, 0x10c
push edx
call fcn.0040f7f0
add esp, 4
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0xffffffff
je 0x40be2b
mov eax, dword [ebp - 0x81c]
and eax, 0x10
je 0x40be2b
jmp 0x40be97
push 0
lea ecx, [ebp - 0x814]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40be97
push 0x400
lea edx, [ebp - 0x2034]
push edx
push 0x58
call fcn.00409ba0
add esp, 0xc
mov eax, dword [ebp - 0x2038]
add eax, 8
push eax
lea ecx, [ebp - 0x2034]
push ecx
lea edx, [ebp - 0x1834]
push edx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x1834]
push eax
call fcn.00407f40
add esp, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2038]
mov word [edx + ecx*2 + 0x10c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00419641
pop esi
mov esp, ebp
pop ebp
ret