Function at 0x439960
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43e35d
push eax
mov dword fs:[0], esp
sub esp, 0x278
push ebx
mov bl, byte [esp + 0x290]
push ebp
push esi
push edi
push 0x400
test bl, bl
jne 0x439b56
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, 0x100
xor eax, eax
mov edi, esi
push 0x3ff
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll__getcwd]
add esp, 0xc
test eax, eax
je 0x439d4f
push esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_2
test esi, esi
mov dword [esp + 0x290], 0
je 0x4399de
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
mov ebx, dword [esp + 0x298]
lea eax, [esp + 0x20]
push ebx
push 0x44bbcc
push eax
mov byte [esp + 0x29c], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x20]
xor esi, esi
mov byte [esp + 0x290], 2
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x439ad3
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov al, byte [esi + eax]
cmp al, 0x2f
je 0x439a56
cmp al, 0x5c
je 0x439a56
mov byte [esp + 0x28], al
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.0043c6d6
jmp 0x439ac5
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push 0x44bbcc
push eax
call ebp
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x439ab7
push 0x458808
push eax
call edi
add esp, 8
test eax, eax
je 0x439ab7
mov ecx, dword [esp + 0x10]
push 0x44c99c
push ecx
call edi
add esp, 8
test eax, eax
je 0x439ab7
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
test eax, eax
je 0x439ab7
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
push 0x44c99c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x20]
inc esi
cmp esi, dword [eax - 8]
jl 0x439a37
mov edi, dword [sym.imp.MSVCRT.dll__chdir]
push ebx
call edi
mov ecx, dword [esp + 0x30]
mov esi, eax
push ecx
call edi
add esp, 8
mov byte [esp + 0x290], 1
test esi, esi
lea ecx, [esp + 0x10]
jne 0x439b2c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x290], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x290], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x439d51
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x290], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0x2c]
jmp 0x439d4a
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, 0x100
xor eax, eax
mov edi, esi
push 0x3ff
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll__getcwd]
add esp, 0xc
test eax, eax
je 0x439d4f
push esi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
test esi, esi
mov dword [esp + 0x290], 3
je 0x439ba1
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [esp + 0x298]
lea edx, [esp + 0x18]
push edi
push 0x44bbcc
push edx
mov byte [esp + 0x29c], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
movsx eax, bl
push eax
lea ecx, [esp + 0x20]
push 0x458804
push ecx
mov byte [esp + 0x29c], 5
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x18]
xor esi, esi
mov byte [esp + 0x290], 6
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x439cad
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov al, byte [esi + eax]
cmp al, bl
jne 0x439c8d
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x15c]
push edx
push 0x44bbcc
push eax
call ebp
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x439c7d
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x439c7d
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
test eax, eax
je 0x439c7d
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
jmp 0x439c9f
mov byte [esp + 0x28], al
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x28]
push edx
call fcn.0043c6d6
mov eax, dword [esp + 0x18]
inc esi
cmp esi, dword [eax - 8]
jl 0x439c1b
push edi
mov edi, dword [sym.imp.MSVCRT.dll__chdir]
call edi
mov esi, eax
mov eax, dword [esp + 0x28]
push eax
call edi
add esp, 8
mov byte [esp + 0x290], 5
test esi, esi
lea ecx, [esp + 0x14]
jne 0x439d14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x290], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x290], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x290], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x439d51
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x290], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x290], 3
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x284
ret