Function at 0x43a490
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43ee6d
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 0x43a686
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, pe_nt_image_headers32
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 0x43a87f
push esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
test esi, esi
mov dword [esp + 0x290], 0
je 0x43a50e
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x20]
call fcn.0043d02a
mov ebx, dword [esp + 0x298]
lea eax, [esp + 0x20]
push ebx
push 0x4580ac
push eax
mov byte [esp + 0x29c], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0043d02a
mov eax, dword [esp + 0x20]
xor esi, esi
mov byte [esp + 0x290], 2
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x43a603
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 0x43a586
cmp al, 0x5c
je 0x43a586
mov byte [esp + 0x28], al
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.0043d23a
jmp 0x43a5f5
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push 0x4580ac
push eax
call ebp
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x43a5e7
push 0x4580a8
push eax
call edi
add esp, 8
test eax, eax
je 0x43a5e7
mov ecx, dword [esp + 0x10]
push 0x44c23c
push ecx
call edi
add esp, 8
test eax, eax
je 0x43a5e7
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
test eax, eax
je 0x43a5e7
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
push 0x44c23c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x20]
inc esi
cmp esi, dword [eax - 8]
jl 0x43a567
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 0x43a65c
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 0x43a881
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 0x43a87a
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, pe_nt_image_headers32
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 0x43a87f
push esi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
test esi, esi
mov dword [esp + 0x290], 3
je 0x43a6d1
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0043d02a
mov edi, dword [esp + 0x298]
lea edx, [esp + 0x18]
push edi
push 0x4580ac
push edx
mov byte [esp + 0x29c], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0043d02a
movsx eax, bl
push eax
lea ecx, [esp + 0x20]
push 0x4580a4
push ecx
mov byte [esp + 0x29c], 5
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.0043d02a
mov eax, dword [esp + 0x18]
xor esi, esi
mov byte [esp + 0x290], 6
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x43a7dd
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov al, byte [esi + eax]
cmp al, bl
jne 0x43a7bd
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x15c]
push edx
push 0x4580ac
push eax
call ebp
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x43a7ad
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x43a7ad
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
test eax, eax
je 0x43a7ad
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 fcn.0043d234
jmp 0x43a7cf
mov byte [esp + 0x28], al
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x28]
push edx
call fcn.0043d23a
mov eax, dword [esp + 0x18]
inc esi
cmp esi, dword [eax - 8]
jl 0x43a74b
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 0x43a844
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 0x43a881
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