Function at 0x42562d
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x42d2cc
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x4a4
push ebx
push esi
push edi
mov esi, ecx
push 0xf
mov byte [ebp - 0xd], 1
call sub.MFC42.DLL_operatornew
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
pop ecx
and byte [ebp - 0x24], 0
push 8
push dword [esi + 0x194]
mov ebx, eax
mov dword [ebp - 0x20], ebx
push ebx
call edi
mov byte [ebx + 8], 0x2e
mov eax, dword [esi + 0x194]
add esp, 0xc
add eax, 8
push 2
push eax
lea eax, [ebx + 9]
push eax
call edi
and byte [ebx + 0xb], 0
add esp, 0xc
push 0x25
push dword [esi + 0x188]
push dword [esi + 0xc0]
call edi
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCRT.dll__ftime]
movzx eax, word [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc0]
fild dword [ebp - 0x14]
pop ecx
add eax, 0x25
push dword [esi + 0x170]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x431958]
fild dword [ebp - 0x30]
push eax
push dword [esi + 0x17c]
fstp qword [ebp - 0x1c]
fadd qword [ebp - 0x1c]
fstp qword [esi + 0x160]
call dword [sym.imp.MSVCRT.dll__read]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
test eax, eax
mov dword [esi + 0x178], eax
jle 0x425779
fld qword [esi + 0x160]
lea eax, [ebp - 0x40]
fstp qword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll__ftime]
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x170]
fild dword [ebp - 0x14]
pop ecx
mov ecx, dword [esi + 0xc0]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x431958]
fild dword [ebp - 0x40]
fstp qword [ebp - 0x1c]
fadd qword [ebp - 0x1c]
fsub qword [ebp - 0x2c]
fadd qword [esi + 0xd8]
fstp qword [esi + 0xd8]
and byte [eax + ecx + 0x25], 0
mov eax, dword [esi + 0xc0]
push dword [esi + 0x178]
mov ecx, dword [esi + 0x1a0]
add eax, 0x25
push eax
push 1
call fcn.0040c4ee
movzx eax, al
test eax, eax
mov dword [esi + 0x184], eax
jne 0x425797
jmp 0x425793
push str.DDECDWNL.DAT
push str.SPLTDWNL
push str._s:_ERROR_READING__s
push dword [esi + 0x18c]
call ebx
add esp, 0x10
and byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x4257b7
push 0x4405c8
push dword [ebp + 8]
call sub.MSVCRT.dll_strcmp
neg eax
sbb al, al
pop ecx
and al, 0xf
pop ecx
add al, 0x46
mov byte [ebp - 0x24], al
and byte [ebp + 0xb], 0
push 0x10
lea eax, [ebp - 0x58]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0xc0]
add esp, 0xc
add eax, 0x144
push 2
push eax
lea eax, [ebp - 0x58]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov byte [esi + 0xc4], al
push 0x10
lea eax, [ebp - 0x58]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0xc0]
add esp, 0xc
add eax, 0x146
push 2
push eax
lea eax, [ebp - 0x58]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
cmp byte [esi + 0x168], 0
pop ecx
mov byte [esi + 0xc5], al
jne 0x425af1
mov ecx, dword [esi + 0xc0]
cmp dword [esi + 0x174], 0x33
mov cl, byte [ecx + 0xc2]
jne 0x425851
mov byte [ebp + 0xb], 1
cmp byte [ebp + 0xb], 1
jne 0x425af1
cmp cl, 0x59
jne 0x425af1
cmp al, 0x31
jle 0x425af1
lea ecx, [ebp - 0x1e8]
call fcn.00405203
and dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x398]
call fcn.0040b2f6
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
movsx eax, byte [esi + 0xc5]
push eax
mov byte [ebp - 4], 2
movsx eax, byte [esi + 0xc4]
push eax
lea eax, [ebp + 8]
push str._d_d
push eax
call sub.MFC42.DLL_CString::Format
mov ax, word [esi + 0xb4]
mov edi, dword [ebp + 0xc]
add esp, 0x10
and dword [ebp - 0x14], 0
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x14]
cmp ax, word [ebp - 0x34]
jl 0x4258e1
cmp dword [esi + 0xb4], 0
jne 0x425abb
movsx eax, ax
push dword [esi + eax*4 + 0x3c]
lea eax, [esi + eax*4 + 0x3c]
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x425ab3
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_CString::operator_2
movsx eax, byte [esi + 0xc5]
push eax
inc dword [esi + 0xb4]
movsx eax, byte [esi + 0xc4]
push eax
lea eax, [ebp - 0x48]
push str.ECME_02d_02d.PRG
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x398]
push eax
call fcn.0040ad5d
lea eax, [ebp - 0x28]
mov ecx, 0x441ef8
push eax
call fcn.00405f9b
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
push ecx
push dword [eax]
lea eax, [ebp - 0xbc]
push 0x4405e8
push eax
call ebx
add esp, 0x10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0xbc]
push 0x48
push eax
lea ecx, [ebp - 0x1e8]
call fcn.00405dc4
lea eax, [ebp - 0x4b0]
lea ecx, [ebp - 0x1e8]
push eax
call fcn.00405cd3
test eax, eax
je 0x4259d9
mov ecx, dword [edi + 0x224]
lea eax, [edi + 0x224]
mov byte [edi + ecx + 0x528], 0x42
mov edx, dword [eax]
movsx ecx, byte [esi + 0xc4]
mov dword [edi + edx*4 + 0x10c], ecx
mov edx, dword [eax]
movsx ecx, byte [esi + 0xc5]
mov dword [edi + edx*4 + 0x184], ecx
inc dword [eax]
mov byte [edi + 8], 1
movsx eax, byte [esi + 0xc5]
push eax
movsx eax, byte [esi + 0xc4]
push eax
lea eax, [ebp - 0x48]
push str.ECME_02d_02d.MAP
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x398]
push eax
call fcn.0040ad5d
lea eax, [ebp - 0x18]
mov ecx, 0x441ef8
push eax
call fcn.00405fb6
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
push ecx
push dword [eax]
lea eax, [ebp - 0xbc]
push 0x440604
push eax
call ebx
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0xbc]
push 0x48
push eax
lea ecx, [ebp - 0x1e8]
call fcn.00405dc4
lea eax, [ebp - 0x4b0]
lea ecx, [ebp - 0x1e8]
push eax
call fcn.00405cd3
test eax, eax
je 0x425ab3
mov eax, dword [edi + 0x224]
mov byte [edi + eax + 0x528], 0x43
mov ecx, dword [edi + 0x224]
movsx eax, byte [esi + 0xc4]
mov dword [edi + ecx*4 + 0x10c], eax
mov ecx, dword [edi + 0x224]
movsx eax, byte [esi + 0xc5]
mov dword [edi + ecx*4 + 0x184], eax
mov eax, dword [edi + 0x224]
mov byte [edi + eax + 0x1fc], 1
inc dword [edi + 0x224]
mov byte [edi + 8], 1
inc dword [ebp - 0x14]
jmp 0x4258cb
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.0040b493
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1e8]
call fcn.004052b5
cmp byte [ebp - 0xd], 0
je 0x425b0d
push 1
mov ecx, esi
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.00421ec7
test al, al
mov byte [ebp - 0xd], al
jne 0x425b1a
cmp dword [esi + 0x184], 0
jne 0x425b1a
mov byte [ebp - 0xd], 1
push dword [ebp - 0x20]
call sub.MFC42.DLL_operatordelete
mov al, byte [ebp - 0xd]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8