Function at 0x403860
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x412c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
add eax, 0xfffffffc
push edi
inc ecx
push eax
push ecx
call fcn.0040cdb0
add esp, 4
mov ebx, eax
mov ecx, esp
mov dword [esp + 0x18], esp
push str.CRC_H
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x18]
mov ecx, 0x420464
push edx
call fcn.0040b4f0
push eax
mov dword [esp + 0x44], 0
call fcn.00403350
or edi, 0xffffffff
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0xe], al
mov dword [esp + 0x40], edi
call fcn.00411daa
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.CRC_L
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x18]
mov ecx, 0x420464
push eax
call fcn.0040b4f0
push eax
mov dword [esp + 0x44], 1
call fcn.00403350
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0xf], al
mov dword [esp + 0x40], edi
call fcn.00411daa
mov al, byte [esp + 0xe]
xor ecx, ecx
mov cl, bh
cmp al, cl
jne 0x40393a
cmp byte [esp + 0xf], bl
jne 0x40393a
mov dword [esi + 0x64], 1
jmp 0x403941
mov dword [esi + 0x64], 0
mov ebx, dword [0x420534]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov edi, 2
cmp ebx, 1
mov dword [esp + 0x40], edi
jne 0x403a01
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, 0x42052c
call fcn.00402470
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.00411daa
push 0x419284
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x403a01
lea eax, [esp + 0x10]
push eax
call fcn.00403350
mov ecx, dword [esi + 8]
add esp, 4
or ecx, edi
mov dword [esi + 0x74], eax
mov dword [esi + 8], ecx
push eax
lea ecx, [esi + 0x28]
push 0x419278
push ecx
mov dword [esi + 0x70], 0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
call fcn.004040e0
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4039f2
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x7c], 0
push 0
lea ecx, [esi + 0x88]
call fcn.00403010
fstp st(0)
mov eax, dword [esi + 0x70]
sub eax, 0
je 0x403cd8
dec eax
jne 0x403e23
cmp ebx, edi
jne 0x403e23
lea edx, [esp + 0x1c]
push 0
push edx
mov ecx, 0x42052c
call fcn.00402470
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
call fcn.00411daa
push 0x41926c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x403e23
lea eax, [esp + 0x10]
push eax
call fcn.00403350
mov ecx, dword [esi + 0x84]
add esp, 4
lea edx, [ecx + 1]
cmp edx, eax
jne 0x403ccb
cmp dword [esi + 0x64], 1
jne 0x403ccb
lea eax, [esp + 0x20]
push 1
push eax
mov ecx, 0x42052c
call fcn.00402470
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 2
call fcn.00411daa
push 0x419264
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x403e23
lea ecx, [esp + 0x24]
push 1
push ecx
mov ecx, 0x42052c
call fcn.00402470
push 0x419050
mov ecx, eax
mov byte [esp + 0x44], 8
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x24]
mov edi, eax
mov byte [esp + 0x40], 2
call fcn.00411daa
lea edx, [esp + 0x28]
push 1
push edx
mov ecx, 0x42052c
call fcn.00402470
mov eax, dword [eax]
lea ecx, [esp + 0x28]
mov ebx, dword [eax - 8]
add ebx, 0xfffffff4
call fcn.00411daa
mov ecx, dword [esi + 0x84]
add edi, 2
inc ecx
cmp edi, ebx
mov byte [esp + 0xd], 0
mov dword [esi + 0x84], ecx
jge 0x403b77
lea ecx, [esp + 0x2c]
push 1
push ecx
mov ecx, 0x42052c
call fcn.00402470
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
mov al, byte [edx + edi]
mov byte [esp + 0xd], al
call fcn.00411daa
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 0xd]
push eax
push 1
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
inc edi
cmp edi, ebx
jl 0x403b39
mov edx, dword [esi + 0x84]
mov ecx, esi
push edx
call fcn.00403fd0
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0xd0]
mov dword [esp + 0x14], eax
xor edi, edi
fild dword [esp + 0x14]
cmp ecx, edi
fmul qword [0x415968]
fidiv dword [esi + 0x74]
fst qword [esi + 0xc0]
je 0x403bf1
cmp eax, 0xa
jge 0x403bc2
fcomp qword [0x415960]
fnstsw ax
test ah, 1
jne 0x403bf3
jmp 0x403bc4
fstp st(0)
push 1
lea ecx, [esi + 0x88]
mov dword [esi + 0xd0], edi
call fcn.00403010
fmul qword [0x415968]
fdiv qword [esi + 0xc0]
fmul qword [0x415958]
fstp qword [esi + 0xc8]
jmp 0x403bf3
fstp st(0)
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x74]
cmp ecx, edx
jne 0x403c5e
push 1
lea ecx, [esi + 0x88]
call fcn.00403010
fmul qword [0x415958]
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x84]
sub esp, 8
lea edx, [esi + 0x28]
fstp qword [esp]
push eax
push ecx
push 0x419238
push edx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x7c]
and edx, 0xfffffffd
push eax
mov dword [esi + 8], edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x1c
mov dword [esi + 0x7c], edi
mov dword [esi + 0x70], 0xffffffff
mov dword [esi + 0x14], 1
jmp 0x403e23
fld qword [esi + 0xc8]
fst qword [esp + 0x14]
fcomp qword [0x415950]
fnstsw ax
test ah, 0x41
jne 0x403ca5
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esi + 0xc4]
push eax
mov eax, dword [esi + 0xc0]
push eax
push edx
push ecx
lea ecx, [esi + 0x28]
push 0x419208
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x20
jmp 0x403e23
mov eax, dword [esi + 0xc4]
push eax
mov eax, dword [esi + 0xc0]
push eax
push edx
push ecx
lea ecx, [esi + 0x28]
push 0x4191e8
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
jmp 0x403e23
push ecx
mov ecx, esi
call fcn.00403fd0
jmp 0x403e23
cmp ebx, 1
jne 0x403e23
lea edx, [esp + 0x30]
push 0
push edx
mov ecx, 0x42052c
call fcn.00402470
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 2
call fcn.00411daa
push 0x4191dc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x403e23
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00403420
add esp, 8
lea ebx, [esi + 0x78]
push eax
mov ecx, ebx
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 2
call fcn.00411daa
mov edx, dword [esi + 8]
lea eax, [esi + 0x28]
or edx, edi
xor edi, edi
mov dword [esi + 8], edx
mov edx, dword [ebx]
push edx
push 0x4191cc
push eax
mov dword [esi + 0x70], edi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ebx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 0x20]
mov dword [esi + 0x84], edi
cmp eax, edi
jne 0x403d99
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00403750
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x2c]
push ecx
lea edi, [esi + 0x80]
push edx
push str._s_s
push edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [edi]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [edi]
push 0x4191c0
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
xor edi, edi
add esp, 8
cmp eax, edi
mov dword [esi + 0x7c], eax
je 0x403e08
mov ecx, esi
call fcn.004041a0
mov eax, 1
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0x70], eax
mov dword [esi + 0xd0], eax
mov dword [esi + 0xc4], edi
mov dword [esi + 0xcc], edi
jmp 0x403e23
mov eax, dword [ebx]
push eax
lea eax, [esi + 0x28]
push 0x4191a4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov dword [esi + 0x70], 0xffffffff
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x403e37
push 0x41919c
lea ecx, [esi + 0x28]
call fcn.00411e10
mov al, byte [0x41e0bc]
test al, 1
jne 0x403e67
mov bl, al
push str.
or bl, 1
mov ecx, 0x41e0b8
mov byte [0x41e0bc], bl
call sub.MFC42.DLL_CString::CString_1
push 0x403ed0
call fcn.00411f32
add esp, 4
mov eax, dword [esi + 0x28]
mov ecx, dword [0x41e0b8]
lea edi, [esi + 0x28]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x403e9f
push edi
mov ecx, 0x41e0b8
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x6c]
push 0
push 2
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.00411daa
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8