Function at 0x405b00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x764
mov eax, dword [0x448044]
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.004279d0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x726]
push eax
mov word [ebp - 0x728], dx
call fcn.004279d0
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 0x405b64
lea eax, [ebp - 0x318]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405b80
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x31a], 0x5c
lea eax, [ebp + eax*2 - 0x318]
jne 0x405ba7
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.004279d0
add esp, 0xc
lea ecx, [ebp - 0x318]
push 0x5c
push ecx
call fcn.004212e8
add esp, 8
test eax, eax
je 0x405ded
add eax, 2
push 0x5c
push eax
call fcn.004212e8
add esp, 8
mov dword [ebp - 0x75c], eax
test eax, eax
je 0x405ded
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.00420eef
add esp, 0xc
push 0x103
lea edx, [ebp - 0x10f]
push 0
push edx
mov byte [ebp - 0x110], 0
call fcn.004279d0
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.00420e6f
mov esi, eax
add esp, 4
test esi, esi
je 0x405cb3
push edi
push 0
push esi
call fcn.004279d0
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 0x405ca0
push esi
call fcn.00420294
add esp, 4
lea edx, [ebp - 0x758]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.004209c9
add esp, 8
test eax, eax
jne 0x405cf4
mov ecx, dword [ebp - 0x75c]
add ecx, 2
push 0x5c
push ecx
call fcn.004212e8
add esp, 8
mov dword [ebp - 0x75c], eax
test eax, eax
je 0x405df5
jmp 0x405c00
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea edx, [ebp - 0x520]
push edx
call edi
test eax, eax
je 0x405d77
mov eax, dword [ebp - 0x75c]
add eax, 2
push 0x5c
push eax
call fcn.004212e8
mov esi, eax
add esp, 8
test esi, esi
je 0x405dfb
jmp 0x405d30
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.00420eef
add esp, 0xc
push 0
lea edx, [ebp - 0x520]
push edx
call edi
test eax, eax
je 0x405db2
push 0x5c
add esi, 2
push esi
call fcn.004212e8
mov esi, eax
add esp, 8
test esi, esi
jne 0x405d30
jmp 0x405dfb
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.0041fb1e
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.0041fb1e
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x405e01
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.004279d0
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push esi
call fcn.0040b550
lea eax, [ebp - 0x758]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.004209c9
add esp, 0x10
test eax, eax
je 0x405e83
push 0
push esi
call edi
test eax, eax
jne 0x405e83
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.0041fb1e
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.0041fb1e
mov esp, ebp
pop ebp
ret