Function at 0x408090
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x764
mov eax, dword [0x44c044]
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.00428450
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x726]
push eax
mov word [ebp - 0x728], dx
call fcn.00428450
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 0x4080f4
lea eax, [ebp - 0x318]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408110
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x31a], 0x5c
lea eax, [ebp + eax*2 - 0x318]
jne 0x408137
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.00428450
add esp, 0xc
lea ecx, [ebp - 0x318]
push 0x5c
push ecx
call fcn.00423b67
add esp, 8
test eax, eax
je 0x40837d
add eax, 2
push 0x5c
push eax
call fcn.00423b67
add esp, 8
mov dword [ebp - 0x75c], eax
test eax, eax
je 0x40837d
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.0042393f
add esp, 0xc
push 0x103
lea edx, [ebp - 0x10f]
push 0
push edx
mov byte [ebp - 0x110], 0
call fcn.00428450
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.004238bf
mov esi, eax
add esp, 4
test esi, esi
je 0x408243
push edi
push 0
push esi
call fcn.00428450
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 0x408230
push esi
call fcn.00421799
add esp, 4
lea edx, [ebp - 0x758]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.00423419
add esp, 8
test eax, eax
jne 0x408284
mov ecx, dword [ebp - 0x75c]
add ecx, 2
push 0x5c
push ecx
call fcn.00423b67
add esp, 8
mov dword [ebp - 0x75c], eax
test eax, eax
je 0x408385
jmp 0x408190
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea edx, [ebp - 0x520]
push edx
call edi
test eax, eax
je 0x408307
mov eax, dword [ebp - 0x75c]
add eax, 2
push 0x5c
push eax
call fcn.00423b67
mov esi, eax
add esp, 8
test esi, esi
je 0x40838b
jmp 0x4082c0
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.0042393f
add esp, 0xc
push 0
lea edx, [ebp - 0x520]
push edx
call edi
test eax, eax
je 0x408342
push 0x5c
add esi, 2
push esi
call fcn.00423b67
mov esi, eax
add esp, 8
test esi, esi
jne 0x4082c0
jmp 0x40838b
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.004217a4
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.004217a4
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x408391
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.00428450
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push esi
call fcn.0040d620
lea eax, [ebp - 0x758]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00423419
add esp, 0x10
test eax, eax
je 0x408413
push 0
push esi
call edi
test eax, eax
jne 0x408413
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.004217a4
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.004217a4
mov esp, ebp
pop ebp
ret