Function at 0x674140
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x7d4d3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x5c]
mov esi, ecx
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x4c]
push 2
push ecx
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x58], ebx
call ebp
lea edx, [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x24]
push 4
push eax
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x28]
push 4
push edx
push edi
call ebp
fld dword [esp + 0x1c]
fcomp dword [esi + 0x5c]
fnstsw ax
test ah, 0x40
je 0x6744ee
fld dword [esp + 0x20]
fcomp dword [esi + 0x60]
fnstsw ax
test ah, 0x40
je 0x6744ee
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
push ebx
add esi, 0x68
push edx
push 4
push esi
push edi
call ebp
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x30]
push eax
call fcn.007a02e0
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
add esp, 4
cmp eax, ebx
mov dword [ecx + 0x30], ebx
jle 0x67425c
lea ebx, [eax + eax*2]
lea ecx, [ebx + ebx*2]
shl ecx, 2
push ecx
call fcn.007a2d8d
add esp, 4
mov dword [esp + 0x5c], eax
test eax, eax
mov dword [esp + 0x54], 0
je 0x674231
dec ebx
mov dword [esp + 0x48], ebx
jmp 0x674233
xor eax, eax
mov edx, dword [esp + 0x10]
mov esi, dword [esi]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [edx + 0x30], eax
lea edx, [esi + esi*8]
push 0
push ecx
shl edx, 2
push edx
push eax
push edi
call ebp
mov ecx, dword [esp + 0x10]
xor ebx, ebx
fld dword [0x7e5664]
fcomp dword [ecx + 0x60]
mov dword [esp + 0x2c], 0
fnstsw ax
test ah, 1
je 0x6744ea
lea eax, [ecx + 0x70]
mov dword [esp + 0x28], eax
fld dword [0x7e5664]
fcomp dword [ecx + 0x5c]
mov dword [esp + 0x40], 0
fnstsw ax
test ah, 1
je 0x6744c5
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x5c], ecx
lea edx, [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x20]
push 4
push eax
push edi
mov dword [esp + 0x2c], ebx
call ebp
cmp dword [esp + 0x18], ebx
je 0x674494
mov ecx, dword [esp + 0x5c]
mov esi, dword [ecx]
cmp esi, ebx
je 0x674381
lea edx, [esp + 0x48]
push ebx
push edx
lea eax, [esp + 0x38]
push 2
push eax
push edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x44], ebx
call ebp
cmp word [esp + 0x30], bx
jl 0x674488
add esi, 0x14
mov dword [esp + 0x3c], 4
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x38], 4
lea ecx, [esp + 0x34]
push ebx
push ecx
push 4
push esi
push edi
mov dword [esp + 0x48], ebx
call ebp
cmp dword [esi], ebx
jle 0x674358
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x674331
push eax
call fcn.007a02e0
add esp, 4
mov eax, dword [esi]
lea edx, [eax + eax*2]
shl edx, 2
push edx
call fcn.007a2d8d
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esi + 4], eax
push ebx
push ecx
mov ecx, dword [esi]
lea edx, [ecx + ecx*2]
shl edx, 2
push edx
push eax
push edi
call ebp
mov eax, dword [esp + 0x38]
add esi, 0x40
dec eax
mov dword [esp + 0x38], eax
jne 0x67430d
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
add ecx, 0x10
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], eax
jne 0x674301
jmp 0x674488
push 0x10c
call fcn.007a2d8d
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
cmp esi, ebx
mov dword [esp + 0x54], 1
je 0x6743cb
push 0x678010
push 0x677ff0
push 0x10
lea eax, [esi + 0xc]
push 0x10
push eax
call fcn.007a3333
mov byte [esp + 0x54], 2
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi], ebx
mov byte [esp + 0x54], 1
jmp 0x6743cd
xor esi, esi
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x48]
push ebx
push edx
lea eax, [esp + 0x44]
push 2
push eax
mov dword [esp + 0x64], 0xffffffff
push edi
mov dword [ecx], esi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x50], ebx
call ebp
cmp word [esp + 0x3c], bx
jl 0x674488
add esi, 0x14
mov dword [esp + 0x30], 4
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x34], 4
lea ecx, [esp + 0x38]
push ebx
push ecx
push 4
push esi
push edi
mov dword [esp + 0x4c], ebx
call ebp
cmp dword [esi], ebx
jle 0x674464
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x67443d
push eax
call fcn.007a02e0
add esp, 4
mov eax, dword [esi]
lea edx, [eax + eax*2]
shl edx, 2
push edx
call fcn.007a2d8d
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esi + 4], eax
push ebx
push ecx
mov ecx, dword [esi]
lea edx, [ecx + ecx*2]
shl edx, 2
push edx
push eax
push edi
call ebp
mov eax, dword [esp + 0x34]
add esi, 0x40
dec eax
mov dword [esp + 0x34], eax
jne 0x674419
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
add ecx, 0x10
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
jne 0x67440d
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [ecx], edx
fld dword [esp + 0x40]
mov eax, dword [esp + 0x5c]
fadd dword [0x7e66fc]
add eax, 0x400
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
fst dword [esp + 0x40]
fcomp dword [eax + 0x5c]
fnstsw ax
test ah, 1
jne 0x6742a3
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x2c]
fadd dword [0x7e66fc]
add dword [esp + 0x28], 4
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fcomp dword [ecx + 0x60]
fnstsw ax
test ah, 1
jne 0x67427f
mov al, 1
jmp 0x6744f0
xor al, al
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4