Function at 0x421540
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x451ac2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov eax, dword [0x46b378]
push ebx
mov ebx, ecx
mov dword [esp + 0xe0], eax
mov eax, dword [ebx + 4]
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x421581
jl 0x42157a
cmp dword [ebx], ebp
ja 0x421581
xor eax, eax
jmp 0x421876
lea ecx, [esp + 0xc]
call fcn.0041ec60
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0xf8], ebp
call fcn.0041d730
test eax, eax
jne 0x4215aa
cmp dword [ebx + 0xc], ebp
je 0x4215c8
lea ecx, [esp + 0xc]
mov dword [esp + 0xf0], 0xffffffff
call fcn.0041f010
mov eax, 1
jmp 0x421876
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.00421280
push 0x457930
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 0x421630
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x10]
mov dword [esp + 0xf4], 0xffffffff
call fcn.0041f010
xor eax, eax
jmp 0x421875
push edi
lea ecx, [esp + 0x4c]
call fcn.0041ebf0
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.0041f7a0
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 0x421841
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x50]
call fcn.0041ec30
test eax, eax
je 0x421841
push esi
push 0x18
lea edx, [esp + 0x3c]
push 1
push edx
call edi
add esp, 0x10
cmp eax, 0x18
jne 0x421841
lea ecx, [esp + 0x28]
call fcn.00421310
mov esi, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
cmp word [esp + 0x38], 0
mov byte [esp + 0xf8], 2
jbe 0x421759
jmp 0x4216e0
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 0x421759
push eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x1c]
call fcn.0041d750
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.00421330
push 1
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00421370
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 0x4216da
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x1c]
jne 0x42176d
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x20]
je 0x421796
mov eax, dword [esi]
cmp eax, esi
mov dword [esi], esi
mov dword [esi + 4], esi
je 0x421834
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 0x421780
jmp 0x421834
mov edi, dword [esi]
cmp edi, esi
mov dword [esp + 0x10], edi
je 0x421810
jmp 0x4217a6
mov edi, dword [esp + 0x10]
cmp dword [ebx], 0
mov ebp, dword [edi + 8]
lea ecx, [edi + 8]
jne 0x4217b8
mov eax, dword [ebx + 4]
test eax, eax
je 0x4217cd
mov edx, dword [ebx + 0x18]
mov eax, dword [edx]
cmp eax, edx
je 0x4217cd
cmp dword [eax + 8], ebp
je 0x421806
mov eax, dword [eax]
cmp eax, dword [ebx + 0x18]
jne 0x4217c1
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.00421330
push 1
mov ecx, esi
mov ebp, eax
call fcn.00421370
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 0x421810
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x4217a2
mov eax, dword [esi]
cmp eax, esi
mov dword [esi], esi
mov dword [esp + 0x10], 1
mov dword [esi + 4], esi
je 0x421834
mov edi, dword [eax]
push eax
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
cmp edi, esi
mov eax, edi
jne 0x421823
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.0041f010
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.004225d1
add esp, 0xec
ret