Function at 0x424370
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4686f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov eax, dword [0x48644c]
push ebx
mov ebx, ecx
mov dword [esp + 0xe0], eax
mov eax, dword [ebx + 4]
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x4243b1
jl 0x4243aa
cmp dword [ebx], ebp
ja 0x4243b1
xor eax, eax
jmp 0x4246a6
lea ecx, [esp + 0xc]
call fcn.00421ae0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0xf8], ebp
call fcn.004205d0
test eax, eax
jne 0x4243da
cmp dword [ebx + 0xc], ebp
je 0x4243f8
lea ecx, [esp + 0xc]
mov dword [esp + 0xf0], 0xffffffff
call fcn.0045a6c0
mov eax, 1
jmp 0x4246a6
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
push esi
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
mov dword [esp + 0x18], ebp
call fcn.004240b0
push 0x46f360
lea ecx, [esp + 0x18]
mov byte [esp + 0xf8], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.MSVCR71.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, ebp
mov dword [esp + 0x20], esi
jne 0x424460
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x10]
mov dword [esp + 0xf4], 0xffffffff
call fcn.0045a6c0
xor eax, eax
jmp 0x4246a5
push edi
lea ecx, [esp + 0x4c]
call fcn.00421a70
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x48], edx
call fcn.00422600
mov edi, dword [sym.imp.MSVCR71.dll_fread]
push esi
push 0x20
lea eax, [esp + 0x54]
push 1
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call edi
add esp, 0x10
cmp eax, 0x20
jne 0x424671
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x50]
call fcn.00421ab0
test eax, eax
je 0x424671
push esi
push 0x18
lea edx, [esp + 0x3c]
push 1
push edx
call edi
add esp, 0x10
cmp eax, 0x18
jne 0x424671
lea ecx, [esp + 0x28]
call fcn.00424140
mov esi, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
cmp word [esp + 0x38], 0
mov byte [esp + 0xf8], 2
jbe 0x424589
jmp 0x424510
mov edi, dword [sym.imp.MSVCR71.dll_fread]
mov eax, dword [esp + 0x24]
push eax
push 0x80
lea ecx, [esp + 0x74]
push 1
push ecx
call edi
add esp, 0x10
cmp eax, 0x80
jne 0x424589
push eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
call fcn.004129d0
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
cdq
add ecx, eax
adc edi, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], edi
lea eax, [esp + 0x6c]
lea edi, [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x34]
call fcn.00424160
push 1
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004241a0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
movzx edx, word [esp + 0x38]
mov esi, dword [esp + 0x2c]
inc ebp
cmp ebp, edx
jl 0x42450a
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x1c]
jne 0x42459d
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x20]
je 0x4245c6
mov eax, dword [esi]
cmp eax, esi
mov dword [esi], esi
mov dword [esi + 4], esi
je 0x424664
lea esp, [esp]
mov edi, dword [eax]
push eax
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
cmp edi, esi
mov eax, edi
jne 0x4245b0
jmp 0x424664
mov edi, dword [esi]
cmp edi, esi
mov dword [esp + 0x10], edi
je 0x424640
jmp 0x4245d6
mov edi, dword [esp + 0x10]
cmp dword [ebx], 0
mov ebp, dword [edi + 8]
lea ecx, [edi + 8]
jne 0x4245e8
mov eax, dword [ebx + 4]
test eax, eax
je 0x4245fd
mov edx, dword [ebx + 0x18]
mov eax, dword [edx]
cmp eax, edx
je 0x4245fd
cmp dword [eax + 8], ebp
je 0x424636
mov eax, dword [eax]
cmp eax, dword [ebx + 0x18]
jne 0x4245f1
mov eax, dword [ebx + 0x18]
mov edi, dword [eax]
mov edx, dword [edi + 4]
lea esi, [ebx + 0x14]
push ecx
push edx
push edi
mov ecx, esi
call fcn.00424160
push 1
mov ecx, esi
mov ebp, eax
call fcn.004241a0
mov esi, dword [esp + 0x2c]
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
cmp dword [ebx + 0x1c], 0xc8
je 0x424640
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x4245d2
mov eax, dword [esi]
cmp eax, esi
mov dword [esi], esi
mov dword [esp + 0x10], 1
mov dword [esi + 4], esi
je 0x424664
mov edi, dword [eax]
push eax
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
cmp edi, esi
mov eax, edi
jne 0x424653
push esi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
mov esi, dword [esp + 0x28]
add esp, 4
push esi
mov dword [ebx + 0xc], 1
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
mov dword [esp + 0xf8], 0xffffffff
call fcn.0045a6c0
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov ecx, dword [esp + 0xe8]
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xe0]
pop ebx
call fcn.00436153
add esp, 0xec
ret