Function at 0x4018d0
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40323c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
mov ebx, ecx
push eax
call fcn.00402250
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x43c], 0
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 0x64
jge 0x401983
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 0x4051a0
push eax
mov byte [esp + 0x448], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0x41
push 0x4050a4
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x401972
mov ecx, ebx
call fcn.00402300
mov byte [esp + 0x43c], 0
lea ecx, [esp + 0x18]
jmp 0x401c51
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push 0x4050ec
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 2
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x10]
push 0x405190
lea eax, [esp + 0x24]
push edx
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x43c], 3
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4019e4
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov esi, dword [eax - 8]
test esi, esi
jle 0x401a22
lea edi, [esp + 0x128]
lea ebp, [esp + 0x330]
sub edi, eax
sub ebp, eax
mov dl, byte [eax]
mov byte [esp + ecx + 0x22c], dl
mov dl, byte [eax]
mov byte [esp + ecx + 0x24], dl
mov dl, byte [eax]
mov byte [edi + eax], dl
mov dl, byte [eax]
mov byte [eax + ebp], dl
inc ecx
inc eax
cmp ecx, esi
jl 0x401a03
lea edi, [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + esi + 0x22c], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dl, 0x5c
mov byte [esp + esi + 0x24], 0
mov byte [esp + esi + 0x128], 0
mov al, byte [esp + ecx + 0x22b]
mov byte [esp + esi + 0x330], 0
cmp al, dl
je 0x401a8e
mov edi, 0x40511c
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x22c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x23], dl
je 0x401ad0
mov edi, 0x40511c
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x127], dl
je 0x401b1b
mov edi, 0x40511c
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x330]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x32f], dl
je 0x401b66
mov edi, 0x40511c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x330]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x22c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x405180
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebx
call fcn.00401c90
lea ecx, [esp + 0x24]
mov esi, eax
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x405170
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebx
call fcn.00401c90
lea edx, [esp + 0x128]
mov edi, eax
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x405160
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebx
call fcn.00401c90
mov ebp, eax
lea eax, [esp + 0x330]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x405154
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebx
call fcn.00401c90
cmp esi, 1
jne 0x401c34
cmp edi, esi
jne 0x401c34
cmp ebp, esi
jne 0x401c34
cmp eax, esi
jne 0x401c34
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x43c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x43c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x401c6c
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 2
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x43c], 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x43c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x430
ret