Function at 0x418890
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bca26
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
push ecx
lea edi, [ebp - 0x50]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x51197c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov esi, esp
push 0x4ca43c
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
cmp esi, esp
call fcn.004b81e1
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
mov esi, esp
lea eax, [ebp + 8]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x10]
call fcn.00418bf0
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x418933
jmp 0x418b52
lea edx, [ebp - 0x1c]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
mov esi, esp
lea eax, [ebp + 8]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x10]
call fcn.00418680
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 0xc]
and edx, 4
je 0x41897e
cmp dword [ebp - 0x30], 0
jne 0x41897e
mov dword [ebp - 0x14], 2
jmp 0x418b52
mov eax, dword [ebp + 0xc]
and eax, 1
je 0x418997
cmp dword [ebp - 0x1c], 0
je 0x418997
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
jmp 0x418b52
mov edx, dword [ebp + 0xc]
and edx, 2
je 0x4189b7
cmp dword [ebp - 0x30], 0
je 0x4189b7
cmp dword [ebp + 0x10], 0
jne 0x4189b7
mov dword [ebp - 0x14], 0x50
jmp 0x418b52
mov esi, esp
push 0x4ca440
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
cmp esi, esp
call fcn.004b81e1
mov eax, dword [ebp - 0x10]
add eax, 4
mov esi, esp
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
cmp esi, esp
call fcn.004b81e1
mov ecx, dword [ebp - 0x10]
add ecx, 0xa
mov esi, esp
push ecx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
cmp esi, esp
call fcn.004b81e1
cmp dword [ebp - 0x30], 0
jne 0x418b4a
mov esi, esp
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
cmp esi, esp
call fcn.004b81e1
mov esi, esp
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
cmp esi, esp
call fcn.004b81e1
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp esi, esp
call fcn.004b81e1
test eax, eax
jne 0x418a9b
mov esi, esp
push 0
mov edi, esp
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
cmp edi, esp
call fcn.004b81e1
mov edi, esp
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
cmp edi, esp
call fcn.004b81e1
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x418a9b
cmp dword [ebp - 0x14], 0x13
je 0x418a9b
cmp dword [ebp - 0x14], 0xa1
je 0x418a9b
mov dword [ebp - 0x14], 0x52
mov esi, esp
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edi, esp
lea ecx, [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
cmp edi, esp
call fcn.004b81e1
mov edi, esp
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
cmp edi, esp
call fcn.004b81e1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x418b0c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x13
je 0x418b0a
mov dword [ebp - 0x14], 0x52
jmp 0x418b4a
mov esi, esp
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004b81e1
mov esi, esp
lea ecx, [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_2895]
cmp esi, esp
call fcn.004b81e1
mov esi, esp
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
cmp esi, esp
call fcn.004b81e1
push eax
call sub.MFC80U.DLL_Ordinal_5416
xor eax, eax
jne 0x4188fb
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp esi, esp
call fcn.004b81e1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp esi, esp
call fcn.004b81e1
mov eax, dword [ebp - 0x40]
push edx
mov ecx, ebp
push eax
lea edx, [0x418bb8]
call fcn.004b8204
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x50
cmp ebp, esp
call fcn.004b81e1
mov esp, ebp
pop ebp
ret 0xc