Function at 0x497f80
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49ec4d
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 0x498176
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 0x49836f
push esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
test esi, esi
mov dword [esp + 0x290], 0
je 0x497ffe
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x20]
call fcn.0049aadc
mov ebx, dword [esp + 0x298]
lea eax, [esp + 0x20]
push ebx
push 0x4aedac
push eax
mov byte [esp + 0x29c], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0049aadc
mov eax, dword [esp + 0x20]
xor esi, esi
mov byte [esp + 0x290], 2
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4980f3
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 0x498076
cmp al, 0x5c
je 0x498076
mov byte [esp + 0x28], al
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
jmp 0x4980e5
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push 0x4aedac
push eax
call ebp
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4980d7
push 0x4c7118
push eax
call edi
add esp, 8
test eax, eax
je 0x4980d7
mov ecx, dword [esp + 0x10]
push 0x4bb2b8
push ecx
call edi
add esp, 8
test eax, eax
je 0x4980d7
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
test eax, eax
je 0x4980d7
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
push 0x4bb2b8
lea ecx, [esp + 0x14]
call fcn.0049ab6c
mov eax, dword [esp + 0x20]
inc esi
cmp esi, dword [eax - 8]
jl 0x498057
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 0x49814c
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 0x498371
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 0x49836a
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 0x49836f
push esi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
test esi, esi
mov dword [esp + 0x290], 3
je 0x4981c1
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0049aadc
mov edi, dword [esp + 0x298]
lea edx, [esp + 0x18]
push edi
push 0x4aedac
push edx
mov byte [esp + 0x29c], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0049aadc
movsx eax, bl
push eax
lea ecx, [esp + 0x20]
push 0x4c7114
push ecx
mov byte [esp + 0x29c], 5
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.0049aadc
mov eax, dword [esp + 0x18]
xor esi, esi
mov byte [esp + 0x290], 6
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4982cd
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov al, byte [esi + eax]
cmp al, bl
jne 0x4982ad
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x15c]
push edx
push 0x4aedac
push eax
call ebp
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49829d
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x49829d
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
test eax, eax
je 0x49829d
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 0x4982bf
mov byte [esp + 0x28], al
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x28]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x18]
inc esi
cmp esi, dword [eax - 8]
jl 0x49823b
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 0x498334
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 0x498371
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