Function at 0x418840
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c6c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], esp
cmp edi, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
je 0x4189f1
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
call esi
add esp, 4
test eax, eax
je 0x4189f1
push edi
call esi
add esp, 4
cmp eax, 0x104
ja 0x4189f1
push 0x20a
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], esi
jne 0x4188ef
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x4188dc
push 0x428094
push 0x2fa
push 8
mov ecx, eax
call fcn.00417d40
jmp 0x4188de
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x423830
push eax
call sub.MSVCRT.dll__CxxThrowException
push edi
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov ebx, dword [sym.imp.MSVCRT.dll_wcsncmp]
push 4
push 0x427bfc
push esi
mov edi, esi
call ebx
add esp, 0x14
test eax, eax
jne 0x418915
lea edi, [esi + 8]
jmp 0x41893f
push 4
push 0x427328
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x41892b
lea edi, [esi + 8]
jmp 0x41893f
push 2
push 0x4280d0
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x41893f
lea edi, [esi + 4]
mov ebx, dword [sym.imp.MSVCRT.dll_wcschr]
push 0x5c
push edi
call ebx
mov edi, eax
add esp, 8
test edi, edi
jne 0x41897f
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x41896c
push 0x57
mov ecx, eax
call fcn.00417bf0
jmp 0x41896e
xor eax, eax
lea ecx, [ebp - 0x20]
push 0x423830
push ecx
mov dword [ebp - 0x20], eax
call sub.MSVCRT.dll__CxxThrowException
add edi, 2
push 0x5c
push edi
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x418a41
push 0
push esi
mov word [edi], 0
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
jne 0x4189ea
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4189ea
push 0x18
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x4189d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00417bf0
jmp 0x4189d9
xor eax, eax
lea edx, [ebp - 0x24]
push 0x423830
push edx
mov dword [ebp - 0x24], eax
call sub.MSVCRT.dll__CxxThrowException
mov word [edi], 0x5c
jmp 0x41897f
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x418a0a
push 0x57
mov ecx, eax
call fcn.00417bf0
jmp 0x418a0c
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0x423830
push eax
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x2c]
push 2
mov ecx, esi
call fcn.00418150
test esi, esi
mov dword [ebp - 0x18], eax
je 0x418a38
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, 0x418a3e
ret
test esi, esi
je 0x418a55
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4