Function at 0x446dd0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x482db7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov eax, dword [0x4ac3b8]
push ebp
push edi
mov edi, ecx
mov ecx, dword [edi]
mov dword [esp + 0xe4], eax
mov eax, dword [edi + 4]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], edi
jg 0x446e17
jl 0x446e10
cmp ecx, ebp
ja 0x446e17
xor eax, eax
jmp 0x4470b2
cmp eax, 2
jl 0x446e26
jg 0x446e2b
cmp ecx, 0x540be400
jae 0x446e2b
cmp dword [edi + 8], ebp
je 0x446e35
mov eax, 1
jmp 0x4470b2
push esi
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x18], ebp
call fcn.004465f0
push 0x488918
lea ecx, [esp + 0x14]
mov dword [esp + 0xf8], ebp
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 + 0x1c], esi
jne 0x446e83
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor eax, eax
jmp 0x4470b1
push ebx
lea ecx, [esp + 0x4c]
call fcn.00405140
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x6c]
call fcn.0044b520
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
push esi
push 0x20
lea edx, [esp + 0x54]
push 1
push edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call ebx
add esp, 0x10
cmp eax, 0x20
jne 0x447091
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
call fcn.00405180
test eax, eax
je 0x447091
push esi
push 0x18
lea ecx, [esp + 0x3c]
push 1
push ecx
call ebx
add esp, 0x10
cmp eax, 0x18
jne 0x447091
lea ecx, [esp + 0x28]
call fcn.004466d0
mov esi, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
cmp word [esp + 0x38], 0
mov byte [esp + 0xf8], 1
jbe 0x446fab
jmp 0x446f33
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
mov edx, dword [esp + 0x20]
push edx
push 0x80
lea eax, [esp + 0x74]
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 0x80
jne 0x446fab
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.00405260
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cdq
add esp, 8
add ebx, eax
mov eax, dword [esi + 4]
adc ecx, edx
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x6c]
lea ebx, [esi + 4]
push edx
push eax
mov dword [esp + 0x24], ecx
push esi
lea ecx, [esp + 0x34]
call fcn.004466f0
push 1
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00446730
mov dword [ebx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], esi
movzx edx, word [esp + 0x38]
mov esi, dword [esp + 0x2c]
inc ebp
cmp ebp, edx
jl 0x446f2d
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x18]
jne 0x446fbf
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x1c]
je 0x446fe6
mov eax, dword [esi]
cmp eax, esi
mov dword [esi], esi
mov dword [esi + 4], esi
je 0x447084
mov edi, edi
mov ebx, dword [eax]
push eax
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
cmp ebx, esi
mov eax, ebx
jne 0x446fd0
jmp 0x447084
mov ebp, dword [esi]
cmp ebp, esi
mov dword [esp + 0x10], ebp
je 0x447060
jmp 0x446ff6
mov ebp, dword [esp + 0x10]
cmp dword [edi], 0
mov ebx, dword [ebp + 8]
lea ecx, [ebp + 8]
jne 0x447008
mov eax, dword [edi + 4]
test eax, eax
je 0x44701d
mov edx, dword [edi + 0x14]
mov eax, dword [edx]
cmp eax, edx
je 0x44701d
cmp dword [eax + 8], ebx
je 0x447055
mov eax, dword [eax]
cmp eax, dword [edi + 0x14]
jne 0x447011
mov edx, dword [edi + 0x14]
mov ebp, dword [edx]
mov eax, dword [ebp + 4]
add edi, 0x10
push ecx
push eax
push ebp
mov ecx, edi
call fcn.004466f0
push 1
mov ecx, edi
mov ebx, eax
call fcn.00446730
mov edx, dword [esp + 0x24]
mov dword [ebp + 4], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], ebx
cmp dword [edx + 0x18], 9
mov edi, edx
je 0x447060
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x446ff2
mov eax, dword [esi]
cmp eax, esi
mov dword [esi], esi
mov dword [esp + 0x10], 1
mov dword [esi + 4], esi
je 0x447084
mov ebx, dword [eax]
push eax
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
cmp ebx, esi
mov eax, ebx
jne 0x447073
push esi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
mov esi, dword [esp + 0x24]
add esp, 4
push esi
mov dword [edi + 8], 1
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [esp + 0x10]
pop ebx
pop esi
mov ecx, dword [esp + 0xe8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xe0]
pop ebp
call fcn.0045015b
add esp, 0xec
ret