Function at 0x673510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xa4], 0
push esi
push edi
je 0x673549
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 4]
push 1
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 0
mov byte [ebx + 0xa4], 1
ja 0x673599
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
ja 0x673599
lea esi, [esp + 0x10]
mov dword [esp + 0x10], 0
call fcn.00554970
mov esi, dword [esp + 0x10]
test esi, esi
push 0
je 0x673591
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x24]
push eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x20], edi
je 0x6735a4
push esi
call fcn.0069c8fa
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [edi + esi]
cmp esi, eax
mov byte [esp + 0xf], 0
mov dword [esp + 0x20], eax
mov edi, esi
mov dword [esp + 0x18], esi
jae 0x673823
jmp 0x6735c4
mov eax, dword [esp + 0x20]
mov esi, eax
sub esi, edi
cmp esi, 8
mov dword [esp + 0x1c], esi
jb 0x673893
mov edx, dword [edi]
bswap edx
mov dword [edi], edx
mov eax, dword [edi + 4]
bswap eax
cmp eax, 0x6d766578
mov dword [edi + 4], eax
je 0x67387d
cmp eax, 0x6d766864
je 0x67377f
cmp eax, 0x7472616b
jne 0x6737e4
push esi
mov eax, edi
call fcn.00673ef0
cmp eax, 0x76696465
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
jne 0x67365f
push 0x140
call fcn.004aefd0
mov esi, eax
add esp, 4
test esi, esi
je 0x67365a
call fcn.00677430
xor eax, eax
mov dword [esi + 0x12c], eax
mov dword [esi + 0x130], eax
mov dword [esi + 0x134], eax
mov dword [esi + 0x138], eax
mov dword [esi + 0x13c], eax
push esi
jmp 0x6736be
xor esi, esi
push esi
jmp 0x6736be
cmp eax, 0x736f756e
jne 0x6736a1
push 0x13a
call fcn.004aefd0
mov esi, eax
add esp, 4
test esi, esi
je 0x67365a
call fcn.00677430
xor eax, eax
mov dword [esi + 0x12c], eax
mov byte [esi + 0x130], al
mov dword [esi + 0x131], eax
mov byte [esi + 0x135], al
mov dword [esi + 0x136], eax
push esi
jmp 0x6736be
push 0x12c
call fcn.004aefd0
add esp, 4
test eax, eax
je 0x6736bb
mov esi, eax
call fcn.00677430
jmp 0x6736bd
xor eax, eax
push eax
lea edi, [esp + 0x18]
call fcn.0068c5f0
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push edi
push ebx
call fcn.006740b0
mov eax, dword [esp + 0x24]
cmp eax, 0x736f756e
jne 0x67372d
cmp dword [edi + 0x136], 8
jne 0x673734
lea esi, [ebx + 0xaf]
call fcn.0048bd10
lea esi, [ebx + 0xb3]
call fcn.0048bd10
mov esi, edi
call fcn.0048a450
push edi
call fcn.0069d0cc
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.0069c8fa
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x76696465
jne 0x673749
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebx + 0xa6]
cmp ecx, eax
jle 0x673743
mov eax, ecx
mov dword [ebx + 0xa6], eax
cmp byte [esp + 0xf], 0
jne 0x673769
lea edx, [esp + 0x14]
push edx
mov edi, ebx
call fcn.00676b80
test al, al
mov edi, dword [esp + 0x14]
je 0x673769
mov byte [esp + 0xf], 1
test edi, edi
je 0x6737dc
mov esi, edi
call fcn.0048a450
push edi
call fcn.0069d0cc
add esp, 4
jmp 0x6737dc
cmp esi, 0xc
jb 0x6738ab
cmp byte [edi + 8], 1
jne 0x673837
cmp esi, 0x78
jb 0x673893
lea eax, [edi + 0xc]
call fcn.00676e20
mov ecx, dword [eax + 0x68]
mov dword [ebx + 0x70], ecx
mov edx, dword [eax + 0x10]
mov dword [ebx + 0x18], edx
mov ecx, dword [eax + 0x14]
mov dword [ebx + 0x1c], ecx
mov edx, dword [eax + 0x18]
mov dword [ebx + 0x20], edx
mov ecx, dword [eax + 0x10]
mov dword [ebx + 0x18], ecx
mov edx, dword [eax + 0x1c]
mov dword [ebx + 0x24], edx
mov cx, word [eax + 0x20]
mov word [ebx + 0x28], cx
lea esi, [eax + 0x2c]
lea edi, [ebx + 0x34]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov edx, edi
call fcn.00673e90
test al, al
je 0x67381f
xor eax, eax
cmp eax, dword [esp + 0x2c]
jb 0x67381f
mov eax, dword [esp + 0x28]
ja 0x67380f
cmp esi, eax
jb 0x67381f
add edi, eax
cmp edi, dword [esp + 0x20]
mov dword [esp + 0x18], edi
jb 0x6735c0
mov esi, dword [esp + 0x10]
push esi
call fcn.0069c8fa
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0x6c
jb 0x673715
lea eax, [edi + 0xc]
call fcn.00676d60
mov edx, dword [eax + 0x5c]
mov dword [ebx + 0x70], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x18], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], 0
mov ecx, dword [eax + 8]
mov dword [ebx + 0x18], ecx
mov edx, dword [eax + 0x10]
mov dword [ebx + 0x24], edx
mov cx, word [eax + 0x14]
mov word [ebx + 0x28], cx
lea esi, [eax + 0x20]
jmp 0x6737d2
mov byte [ebx + 0xaa], 1
mov dword [ebx + 0xab], 0
jmp 0x6737e4
mov edx, dword [esp + 0x10]
push edx
call fcn.0069c8fa
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0069c8fa
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc