Function at 0x40ade0
Capabilities:
Create directory
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x417e37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28c
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edi
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a4], 0
call sub.MFC42u.DLL_CString::CString
lea ebp, [edi + 0x4b4]
lea eax, [esp + 0x9c]
push ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 1
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0x200
mov byte [0x534eec], 0
call sub.MFC42u.DLL_CString::operator_2
push 0x41d9cc
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.004117b8
test bl, bl
je 0x40af15
push 0x41d9cc
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_2
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x2b0], 2
call sub.MFC42u.DLL_operator
mov esi, dword [esp + 0x2ac]
mov bl, 3
push esi
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x2ac], bl
push eax
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, ebp
mov byte [esp + 0x2a8], 4
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a4], bl
call fcn.004117b8
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a4], 2
call fcn.004117b8
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a4], 1
call fcn.004117b8
jmp 0x40af54
mov ecx, dword [esp + 0x2ac]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, ebp
mov byte [esp + 0x2a8], 5
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a4], 1
call fcn.004117b8
mov esi, dword [esp + 0x2ac]
mov eax, dword [ebp]
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.00403fc0
add esp, 8
test eax, eax
jne 0x40b3c2
mov ebx, dword [esp + 0x2b4]
lea ecx, [esp + 0x18]
push ebx
call fcn.004117c4
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::ReverseFind
test eax, eax
je 0x40afb4
push eax
lea edx, [esp + 0x20]
push 0
push edx
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::Mid
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x1c]
call fcn.004117b8
jmp 0x40afc4
mov eax, dword [esp + 0x2b0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x78]
push ecx
push edx
mov dword [esp + 0x7c], 0x200
call fcn.00404050
mov ecx, dword [esp + 0x78]
add esp, 8
cmp word [ecx], 0
jne 0x40afec
lea ecx, [esp + 0x56]
test eax, eax
jne 0x40b023
mov ax, word [esp + 0x56]
test ax, ax
je 0x40b023
test byte [esp + 0x54], 0x10
jne 0x40afc4
cmp ax, 0x2e
je 0x40afc4
push ebx
lea eax, [esp + 0x5a]
push ecx
push eax
mov ecx, edi
call fcn.0040b440
test eax, eax
je 0x40afc4
lea ecx, [esp + 0x10]
push ecx
jmp 0x40b3bb
push 0x41d9cc
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_2
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.004117b8
test bl, bl
je 0x40b0d4
push 0x41d9cc
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x2b0], 6
call sub.MFC42u.DLL_operator
push esi
lea ecx, [esp + 0x20]
mov bl, 7
push eax
push ecx
mov byte [esp + 0x2b0], bl
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, ebp
mov byte [esp + 0x2a8], 8
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a4], bl
call fcn.004117b8
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a4], 6
call fcn.004117b8
mov byte [esp + 0x2a4], 1
lea ecx, [esp + 0x14]
jmp 0x40b100
lea edx, [esp + 0x10]
push esi
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, ebp
mov byte [esp + 0x2a8], 9
call sub.MFC42u.DLL_CString::operator_2
mov byte [esp + 0x2a4], 1
lea ecx, [esp + 0x1c]
call fcn.004117b8
mov eax, dword [ebp]
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.00403fc0
add esp, 8
lea edx, [esp + 0x4c]
lea eax, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x7c], 0x200
call fcn.00404050
mov edi, dword [esp + 0x78]
add esp, 8
cmp word [edi], 0
jne 0x40b13e
lea edi, [esp + 0x56]
test eax, eax
jne 0x40b3ee
mov ax, word [esp + 0x56]
test ax, ax
je 0x40b3ee
test byte [esp + 0x54], 0x10
je 0x40b116
cmp ax, 0x2e
je 0x40b116
mov ecx, dword [esp + 0x2b4]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004117c4
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::ReverseFind
mov esi, eax
push 0x41dc68
test esi, esi
je 0x40b22e
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_2
inc esi
lea edx, [esp + 0x28]
push esi
push 0
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b0], 0xa
call sub.MFC42u.DLL_CString::Mid
push edi
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x2ac], 0xb
push eax
call sub.MFC42u.DLL_operator_1
lea ecx, [esp + 0x14]
lea edx, [esp + 0x44]
push ecx
push eax
push edx
mov byte [esp + 0x2b0], 0xc
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a8], 0xd
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a4], 0xc
call fcn.004117b8
lea ecx, [esp + 0x30]
mov byte [esp + 0x2a4], 0xb
call fcn.004117b8
lea ecx, [esp + 0x28]
mov byte [esp + 0x2a4], 0xa
call fcn.004117b8
mov byte [esp + 0x2a4], 1
lea ecx, [esp + 0x14]
jmp 0x40b2a1
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString_2
push edi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2a8], 0xe
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x38]
push ecx
push eax
push edx
mov byte [esp + 0x2b0], 0xf
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a8], 0x10
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x38]
mov byte [esp + 0x2a4], 0xf
call fcn.004117b8
lea ecx, [esp + 0x48]
mov byte [esp + 0x2a4], 0xe
call fcn.004117b8
mov byte [esp + 0x2a4], 1
lea ecx, [esp + 0x24]
call fcn.004117b8
push 0x41d9cc
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setne bl
call fcn.004117b8
test bl, bl
je 0x40b362
push 0x41d9cc
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString_2
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x2b0], 0x11
call sub.MFC42u.DLL_operator
mov edx, dword [esp + 0x2ac]
mov byte [esp + 0x2a4], 0x12
push edx
push eax
lea eax, [esp + 0x48]
push eax
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, ebp
mov byte [esp + 0x2a8], 0x13
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x2a4], 0x12
call fcn.004117b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2a4], 0x11
call fcn.004117b8
mov byte [esp + 0x2a4], 1
lea ecx, [esp + 0x1c]
jmp 0x40b395
mov ecx, dword [esp + 0x2ac]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, ebp
mov byte [esp + 0x2a8], 0x14
call sub.MFC42u.DLL_CString::operator_2
mov byte [esp + 0x2a4], 1
lea ecx, [esp + 0x34]
call fcn.004117b8
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x56]
push ecx
mov ecx, dword [esp + 0x40]
push edi
push edx
call fcn.0040ade0
test eax, eax
je 0x40b116
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a4], 0
call fcn.004117b8
lea ecx, [esp + 0x18]
mov dword [esp + 0x2a4], 0xffffffff
call fcn.004117b8
mov eax, 1
jmp 0x40b421
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a4], 0
call fcn.004117b8
lea ecx, [esp + 0x18]
mov dword [esp + 0x2a4], 0xffffffff
call fcn.004117b8
xor eax, eax
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x298
ret 0xc