Function at 0x4689a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call fcn.005960c7
push edi
call fcn.0045d070
push edi
call fcn.0045d240
mov esi, dword [ebp + 0x14]
add esp, 0xc
cwde
cdq
xor eax, edx
sub eax, edx
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
mov eax, dword [esi]
test eax, eax
jg 0x4689ec
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push 0x94
push eax
call fcn.00592c0b
mov ebx, dword [ebp + 0x10]
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x468bc0
cmp dword [esi], 0
mov dword [ebp - 8], 0
jle 0x468bb7
xor esi, esi
mov dword [ebp + 8], esi
lea ecx, [ecx]
push edi
call fcn.0045d070
mov ecx, dword [ebx]
push edi
mov dword [esi + ecx], eax
call fcn.0045d070
mov ecx, dword [ebx]
push edi
mov dword [esi + ecx + 4], eax
call fcn.0045d070
mov ecx, dword [ebx]
push edi
mov dword [esi + ecx + 8], eax
call fcn.0045d070
mov ecx, dword [ebx]
add esp, 0x10
mov dword [esi + ecx + 0xc], eax
mov ecx, dword [ebx]
add ecx, esi
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
test eax, eax
jle 0x468a6e
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 4]
test eax, eax
jle 0x468a6e
mov eax, dword [ebp + 0x18]
inc dword [eax]
push edi
call fcn.0045d240
movzx ecx, ax
add esp, 4
xor esi, esi
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x468ac7
mov ebx, dword [ebp + 8]
push edi
call fcn.0045d240
movzx eax, ax
push edi
mov dword [ebp - 4], eax
call fcn.0045d070
add esp, 8
mov dword [ebp - 0xc], eax
cmp esi, 8
jge 0x468ab9
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
mov word [ebx + ecx + 0x14], dx
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
mov dword [ebx + ecx + 0x18], eax
mov ecx, dword [ebp - 0x10]
inc esi
add ebx, 8
cmp esi, ecx
jl 0x468a86
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
cmp ecx, 8
mov eax, 8
cmovg ecx, eax
mov eax, dword [ebx]
mov dword [edx + eax + 0x10], ecx
lea eax, [ebp - 0x14]
push dword [edi]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x10
cmp eax, 1
jne 0x468bc0
push 8
push edi
call fcn.0045d3f0
push edi
call fcn.0045d070
push edi
mov esi, eax
call fcn.0045d070
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
je 0x468b20
push eax
push edi
call fcn.0045d3f0
add esp, 8
mov eax, 0xfffffffc
sub eax, dword [ebp - 0x10]
push edi
add esi, eax
call fcn.0045d070
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x468b44
push eax
push edi
call fcn.0045d3f0
add esp, 8
mov eax, 0xfffffffc
sub eax, dword [ebp - 4]
add esi, eax
lea eax, [ebp - 4]
push eax
push edi
call fcn.00468c70
sub esi, dword [ebp - 4]
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x468b85
mov ecx, dword [ebx]
push 0x40
push eax
mov eax, dword [ebp + 8]
add eax, 0x54
add ecx, eax
push ecx
call fcn.00593bc0
push dword [ebp - 0x10]
call fcn.00592c4b
add esp, 0x10
jmp 0x468b8f
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax + 0x54], 0
push esi
push edi
call fcn.0045d3f0
mov eax, dword [ebp - 8]
add esp, 8
mov ecx, dword [ebp + 0x14]
inc eax
mov esi, dword [ebp + 8]
add esi, 0x94
mov dword [ebp - 8], eax
mov dword [ebp + 8], esi
cmp eax, dword [ecx]
jl 0x468a20
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret