Function at 0x405200
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x764
mov eax, dword [0x446044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
lea ecx, [ebp - 0x316]
push ecx
mov dword [ebp - 0x760], esi
mov word [ebp - 0x318], ax
call fcn.00426670
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x726]
push eax
mov word [ebp - 0x728], dx
call fcn.00426670
lea edx, [ebp - 0x318]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405264
lea eax, [ebp - 0x318]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405280
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x31a], 0x5c
lea eax, [ebp + eax*2 - 0x318]
jne 0x4052a7
xor ecx, ecx
mov word [eax - 2], cx
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x51e]
push eax
mov word [ebp - 0x520], dx
call fcn.00426670
add esp, 0xc
lea ecx, [ebp - 0x318]
push 0x5c
push ecx
call fcn.0041ff88
add esp, 8
test eax, eax
je 0x4054ed
add eax, 2
push 0x5c
push eax
call fcn.0041ff88
add esp, 8
mov dword [ebp - 0x75c], eax
test eax, eax
je 0x4054ed
lea ebx, [ebx]
lea edx, [ebp - 0x318]
sub eax, edx
sar eax, 1
push eax
mov eax, edx
push eax
lea ecx, [ebp - 0x520]
push ecx
call fcn.0041fb8f
add esp, 0xc
push 0x103
lea edx, [ebp - 0x10f]
push 0
push edx
mov byte [ebp - 0x110], 0
call fcn.00426670
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x520]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
lea edi, [ebx + 1]
push edi
call fcn.0041fb0f
mov esi, eax
add esp, 4
test esi, esi
je 0x4053b3
push edi
push 0
push esi
call fcn.00426670
add esp, 0xc
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x520]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [ebp - 0x110]
mov byte [esi + ebx], 0
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4053a0
push esi
call fcn.0041ef34
add esp, 4
lea edx, [ebp - 0x758]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0041f669
add esp, 8
test eax, eax
jne 0x4053f4
mov ecx, dword [ebp - 0x75c]
add ecx, 2
push 0x5c
push ecx
call fcn.0041ff88
add esp, 8
mov dword [ebp - 0x75c], eax
test eax, eax
je 0x4054f5
jmp 0x405300
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea edx, [ebp - 0x520]
push edx
call edi
test eax, eax
je 0x405477
mov eax, dword [ebp - 0x75c]
add eax, 2
push 0x5c
push eax
call fcn.0041ff88
mov esi, eax
add esp, 8
test esi, esi
je 0x4054fb
jmp 0x405430
lea edx, [ebp - 0x318]
mov ecx, esi
sub ecx, edx
sar ecx, 1
push ecx
mov eax, edx
push eax
lea ecx, [ebp - 0x520]
push ecx
call fcn.0041fb8f
add esp, 0xc
push 0
lea edx, [ebp - 0x520]
push edx
call edi
test eax, eax
je 0x4054b2
push 0x5c
add esi, 2
push esi
call fcn.0041ff88
mov esi, eax
add esp, 8
test esi, esi
jne 0x405430
jmp 0x4054fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x520]
push eax
push str.wmcFuncFileSystem__CreateFullDirectory__CreateDirectory
lea ecx, [ebp - 0x728]
push str.__s_:
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e7be
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x520]
push edx
push str.wmcFuncFileSystem__CreateFullDirectory__CreateDirectory
lea eax, [ebp - 0x728]
push str.__s_:
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e7be
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x405501
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [ebp - 0x760]
push 0x103
lea ecx, [ebp - 0x10f]
push 0
push ecx
mov byte [ebp - 0x110], 0
call fcn.00426670
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push esi
call fcn.0040ae50
lea eax, [ebp - 0x758]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0041f669
add esp, 0x10
test eax, eax
je 0x405583
push 0
push esi
call edi
test eax, eax
jne 0x405583
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.wmcFuncFileSystem__CreateFullDirectory__CreateDirectory
lea edx, [ebp - 0x728]
push str.__s_:
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e7be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041e7be
mov esp, ebp
pop ebp
ret