Function at 0x404330
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x412c82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
push esi
push edi
push 0x41b3e8
lea eax, [esp + 0x50]
mov ebx, 1
push 0x41bd88
push eax
mov dword [esp + 0x60], ebx
call sub.MFC42.DLL_operator
mov ecx, dword [esp + 0x4c]
push 0x5042
xor ebp, ebp
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0xb4], ebp
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov edx, dword [esp + 0xb8]
mov edi, dword [esp + 0xb4]
mov byte [esp + 0xac], bl
mov eax, dword [edx]
mov ecx, dword [edi]
push eax
mov eax, dword [esp + 0x60]
push ecx
lea ecx, [esp + 0x64]
call dword [eax + 0x40]
mov edx, dword [esp + 0x5c]
push ebp
push ebp
lea ecx, [esp + 0x64]
call dword [edx + 0x30]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0xac], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0xac], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0xac], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xac], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0xac], 9
call sub.MFC42.DLL_CString::CString
push 0x41b31c
lea ecx, [esp + 0x48]
mov byte [esp + 0xb0], 0xa
mov dword [esp + 0x40], ebp
call fcn.0040cfb2
mov dword [esp + 0x48], ebp
lea eax, [esp + 0x10]
mov byte [esp + 0xac], 0xb
push eax
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CStdioFile::ReadString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x10]
mov esi, dword [0x41bd68]
push ecx
call dword [sym.imp.MSVCRT.dll_atof]
fstp qword [esp + 0x90]
push esi
call dword [sym.imp.MSVCRT.dll_atof]
fcomp qword [esp + 0x94]
add esp, 8
fnstsw ax
test bl, ah
jne 0x404534
push 0x41b3dc
mov ecx, 0x41bd84
mov dword [esp + 0x58], ebp
call fcn.0040cfb2
push 0x41bd84
mov ecx, 0x41bd2c
call fcn.0040cffa
push 0x41b3d4
mov ecx, 0x41bd80
call fcn.0040cfb2
mov eax, dword [0x41bd34]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x41bd94], ebp
jne 0x40452b
mov edx, dword [0x41bd90]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push 3
push 0x467
push edx
call esi
mov eax, dword [0x41bd90]
push ebp
push ebp
push 0x466
push eax
call esi
jmp 0x404e36
mov dword [esp + 0x54], ebp
jmp 0x404e36
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0xac], 0xc
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
lea edx, [esp + 0x18]
push 0x41b3c8
push edx
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CTime::Format
lea eax, [esp + 0x10]
lea ecx, [esp + 0x5c]
push eax
mov byte [esp + 0xb0], 0xd
call sub.MFC42.DLL_CStdioFile::ReadString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x404743
lea ecx, [esp + 0x1c]
mov dword [0x41b2bc], ebp
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x41bd88]
lea eax, [esp + 0x1c]
push edx
push 0x41b3b8
push eax
mov byte [esp + 0xb8], 0xe
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004030d0
mov eax, dword [0x41bd74]
add esp, 0x10
lea ecx, [esp + 0x14]
push eax
call fcn.0040cffa
push 0x41b3b0
push 0x41b3a8
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Replace_1
push 0x2f
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebp
jl 0x404643
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
sub ecx, eax
lea eax, [esp + 0x20]
dec ecx
push ecx
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, 0x41bd24
mov byte [esp + 0xb0], 0xf
call fcn.0040cffa
lea ecx, [esp + 0x20]
mov byte [esp + 0xac], 0xe
call fcn.0040cfa6
jmp 0x404652
push 0x41bd10
mov ecx, 0x41bd24
call fcn.0040cfb2
push 0x41bd24
lea ecx, [esp + 0x2c]
call fcn.0040cffa
push 0x41bd24
lea ecx, [esp + 0x30]
call fcn.0040cffa
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040cffa
lea edx, [esp + 0x50]
push 0x41b390
push edx
lea ecx, [esp + 0x60]
mov dword [0x41bd9c], ebp
call sub.MFC42.DLL_CTime::Format
push eax
lea eax, [esp + 0x24]
mov bl, 0x10
push 0x41bd8c
push eax
mov byte [esp + 0xb8], bl
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb0], 0x11
call fcn.0040cffa
lea ecx, [esp + 0x20]
mov byte [esp + 0xac], bl
call fcn.0040cfa6
lea ecx, [esp + 0x50]
mov byte [esp + 0xac], 0xe
call fcn.0040cfa6
mov ecx, dword [0x41bd88]
lea edx, [esp + 0x34]
push ecx
push 0x41b3b8
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x30]
push 0x41bd8c
call fcn.0040cffa
push 0x41b384
lea ecx, [esp + 0x48]
call fcn.0040cfb2
mov eax, dword [0x41bd60]
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
mov ecx, 0x41bd58
call fcn.004069d0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xac], 0xd
call fcn.0040cfa6
jmp 0x404e14
lea edx, [esp + 0x10]
lea ecx, [esp + 0x5c]
push edx
mov dword [0x41b2bc], ebx
call sub.MFC42.DLL_CStdioFile::ReadString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
mov al, byte [ecx + eax - 1]
cmp al, 0x2f
je 0x40477d
push 0x41b380
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.0040cffa
cmp esi, ebp
mov dword [0x41bd9c], ebp
jle 0x404dd3
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CStdioFile::ReadString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 0x10]
cmp byte [edx], 0x5c
jne 0x4047f0
lea eax, [esp + 0x50]
push 1
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], 0x12
call fcn.0040cffa
lea ecx, [esp + 0x50]
mov byte [esp + 0xac], 0xd
call fcn.0040cfa6
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040cffa
lea edx, [esp + 0x98]
push 0x41b390
push edx
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CTime::Format
push eax
lea eax, [esp + 0xa4]
push 0x41bd8c
push eax
mov byte [esp + 0xb8], 0x13
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 0x14
call fcn.0040cffa
lea ecx, [esp + 0xa0]
mov byte [esp + 0xac], 0x13
call fcn.0040cfa6
lea ecx, [esp + 0x98]
mov byte [esp + 0xac], 0xd
call fcn.0040cfa6
lea ecx, [esp + 0x70]
push 4
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
push 0x41b378
push eax
call esi
add esp, 8
lea ecx, [esp + 0x70]
test eax, eax
sete bl
call fcn.0040cfa6
test bl, bl
je 0x404998
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x7c]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb0], 0x15
call fcn.0040cffa
lea ecx, [esp + 0x78]
mov byte [esp + 0xac], 0xd
call fcn.0040cfa6
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x80]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
add eax, 0xfffffffc
push eax
push edx
call sub.MFC42.DLL_CString::Left
push eax
lea eax, [esp + 0xa0]
push 0x41bd8c
push eax
mov byte [esp + 0xb8], 0x16
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 0x17
call fcn.0040cffa
lea ecx, [esp + 0x9c]
mov byte [esp + 0xac], 0x16
call fcn.0040cfa6
lea ecx, [esp + 0x80]
mov byte [esp + 0xac], 0xd
call fcn.0040cfa6
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x94]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
add eax, 0xfffffffc
push eax
push edx
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 0x18
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x94]
mov byte [esp + 0xac], 0xd
call fcn.0040cfa6
lea eax, [esp + 0x18]
push eax
jmp 0x4049f6
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040cffa
lea edx, [esp + 0x10]
lea eax, [esp + 0x88]
push edx
push 0x41bd8c
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 0x19
call fcn.0040cffa
lea ecx, [esp + 0x88]
mov byte [esp + 0xac], 0xd
call fcn.0040cfa6
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x3c]
call fcn.0040cffa
mov eax, dword [esp + 0x10]
mov ecx, dword [0x41bd88]
push eax
push ecx
lea edx, [esp + 0x20]
push 0x41b368
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
call fcn.0040cffa
push 0x2f
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x78]
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xb0], 0x1a
call fcn.0040cffa
lea ecx, [esp + 0x74]
mov byte [esp + 0xac], 0xd
call fcn.0040cfa6
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CStdioFile::ReadString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x5c]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x48]
call fcn.0040cffa
lea edx, [esp + 0x10]
lea ecx, [esp + 0x5c]
push edx
call sub.MFC42.DLL_CStdioFile::ReadString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
call fcn.0040cffa
lea ecx, [esp + 0x7c]
push 0xb
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x41b35c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x7c]
test eax, eax
sete bl
call fcn.0040cfa6
test bl, bl
je 0x404b70
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov eax, dword [edx - 8]
add eax, 0xfffffff5
push eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::Left
push 0x41b34c
lea ecx, [esp + 0x20]
mov byte [esp + 0xb0], 0x1b
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edx
mov ecx, 0x41d34c
call fcn.00409cd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xac], 0xd
call fcn.0040cfa6
jmp 0x404b84
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, 0x41d34c
call fcn.00409cd0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x404dbd
mov ecx, dword [esp + 0x3c]
mov ebx, dword [0x41bd9c]
mov edx, dword [0x41bd64]
add ebx, ecx
mov ecx, dword [0x41bd60]
mov eax, 0x66666667
sub edx, ecx
mov dword [0x41bd9c], ebx
imul edx
sar edx, 4
mov eax, edx
mov esi, ecx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x404d10
mov edi, dword [0x41bd5c]
cmp edi, ebp
je 0x404c18
mov edx, ecx
mov eax, 0x66666667
sub edx, edi
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jbe 0x404c18
mov edx, ecx
mov eax, 0x66666667
sub edx, edi
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
jmp 0x404c1d
mov ebx, 1
cmp edi, ebp
jne 0x404c25
xor edx, edx
jmp 0x404c38
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [edx + ebx]
cmp eax, ebp
mov dword [esp + 0x84], eax
jge 0x404c48
xor eax, eax
lea edx, [eax + eax*4]
shl edx, 3
push edx
call sub.MFC42.DLL_operatornew
mov edi, dword [0x41bd5c]
add esp, 4
cmp edi, esi
mov dword [esp + 0x8c], eax
mov ebp, eax
je 0x404c7e
push edi
push ebp
call fcn.00407030
add edi, 0x28
add esp, 8
add ebp, 0x28
cmp edi, esi
jne 0x404c6a
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.00407030
mov ebx, dword [0x41bd60]
add esp, 8
cmp esi, ebx
je 0x404cad
lea edi, [ebp + 0x28]
push esi
push edi
call fcn.00407030
add esi, 0x28
add esp, 8
add edi, 0x28
cmp esi, ebx
jne 0x404c99
mov ecx, dword [0x41bd60]
mov edx, dword [0x41bd5c]
push ecx
push edx
mov ecx, 0x41bd58
call fcn.00406720
mov eax, dword [0x41bd5c]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x90]
add esp, 4
lea eax, [eax + eax*4]
lea ecx, [esi + eax*8]
mov dword [0x41bd64], ecx
mov ecx, 0x41bd58
call fcn.004064c0
inc eax
mov dword [0x41bd5c], esi
xor ebp, ebp
lea edx, [eax + eax*4]
lea eax, [esi + edx*8]
mov dword [0x41bd60], eax
jmp 0x404dbd
mov edx, ecx
mov eax, 0x66666667
sub edx, esi
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x404d84
lea edx, [esi + 0x28]
push edx
push ecx
push esi
mov ecx, 0x41bd58
call fcn.00406db0
mov edi, dword [0x41bd60]
lea eax, [esp + 0x24]
mov ecx, edi
push eax
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, 0x41bd58
sub eax, edx
push eax
push edi
call fcn.00406df0
mov edx, dword [0x41bd60]
lea ecx, [esp + 0x24]
push ecx
push edx
push esi
call fcn.00406e90
add esp, 0xc
jmp 0x404db6
push ecx
push ecx
add ecx, 0xffffffd8
push ecx
mov ecx, 0x41bd58
call fcn.00406db0
mov eax, dword [0x41bd60]
push eax
add eax, 0xffffffd8
push eax
push esi
call fcn.00406f30
lea eax, [esp + 0x30]
lea ecx, [esi + 0x28]
push eax
push ecx
push esi
call fcn.00406e90
add esp, 0x18
add dword [0x41bd60], 0x28
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x40479d
mov edi, dword [esp + 0xb4]
mov ecx, 0x41bd28
call sub.MFC42.DLL_CString::Empty
lea edx, [esp + 0x10]
lea ecx, [esp + 0x5c]
push edx
call sub.MFC42.DLL_CStdioFile::ReadString
cmp eax, ebp
je 0x404e00
lea eax, [esp + 0x10]
mov ecx, 0x41bd28
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x404ddd
push 0x41b348
push 0x41b344
mov ecx, 0x41bd28
call sub.MFC42.DLL_CString::Replace_1
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 0xc
call fcn.0040cfa6
lea ecx, [esp + 0x14]
mov byte [esp + 0xac], 0xb
call fcn.0040cfa6
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CStdioFile::Close
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [edi]
cmp eax, ebp
je 0x404e5b
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi], ebp
lea ecx, [esp + 0x44]
mov byte [esp + 0xac], 0x22
call fcn.0040cfa6
lea ecx, [esp + 0x40]
mov byte [esp + 0xac], 0x21
call fcn.0040cfa6
lea ecx, [esp + 0x38]
mov byte [esp + 0xac], 0x20
call fcn.0040cfa6
lea ecx, [esp + 0x34]
mov byte [esp + 0xac], 0x1f
call fcn.0040cfa6
lea ecx, [esp + 0x30]
mov byte [esp + 0xac], 0x1e
call fcn.0040cfa6
lea ecx, [esp + 0x2c]
mov byte [esp + 0xac], 0x1d
call fcn.0040cfa6
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], 0x1c
call fcn.0040cfa6
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 2
call fcn.0040cfa6
lea ecx, [esp + 0x10]
mov byte [esp + 0xac], 1
call fcn.0040cfa6
lea ecx, [esp + 0x5c]
mov byte [esp + 0xac], 0
call fcn.0040d174
lea ecx, [esp + 0x4c]
mov dword [esp + 0xac], 0xffffffff
call fcn.0040cfa6
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret