Function at 0x1006885e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7bc
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call fcn.100680fb
cmp dword [0x101aef34], ebx
pop ecx
jne 0x10068887
push 0x1ecd
push 2
jmp 0x100689b8
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push 1
push eax
push ebx
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call esi
push ebx
push ebx
push ebx
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call esi
mov ecx, 0xf7
xor eax, eax
lea edi, [ebp - 0x7bb]
mov byte [ebp - 0x7bc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x7bc]
push 0x3e0
push eax
push dword [ebp + 8]
call fcn.1006bccb
add esp, 0xc
mov edi, eax
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call esi
cmp edi, ebx
jne 0x100688f5
push 0x1ee1
push 0xf
jmp 0x100689b8
mov ecx, 0xe1
xor eax, eax
lea edi, [ebp - 0x3db]
mov byte [ebp - 0x3dc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x3dc]
push eax
lea eax, [ebp - 0x7bc]
push eax
call fcn.1006b7ad
pop ecx
test eax, eax
pop ecx
jne 0x10068932
push 0x1ee9
push 0x14
jmp 0x100689b8
lea eax, [ebp - 0x3dc]
push eax
call fcn.10071139
test eax, eax
pop ecx
jne 0x1006894c
push 0x1ef0
push 0x1f
jmp 0x100689b8
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
jne 0x10068973
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
call fcn.1007e1e0
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, ebx
je 0x1006896b
mov dword [eax], ebx
push 1
pop eax
jmp 0x10068af6
cmp dword [ebp + 0x10], eax
jae 0x100689a1
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x10068981
mov dword [ecx], eax
cmp dword [ebp + 0xc], ebx
je 0x10068994
push 0x1f05
push 0x20
call fcn.100680dd
pop ecx
pop ecx
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
jmp 0x10068af6
push eax
call fcn.1007e238
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x100689c6
push 0x1f0f
push 0x21
call fcn.100680dd
pop ecx
xor eax, eax
pop ecx
jmp 0x10068af6
push dword [ebp - 0x5c]
push ebx
push edi
call fcn.1007e1e0
add esp, 0xc
lea eax, [ebp - 0x60]
mov dword [ebp - 0xc], ebx
push ebx
push eax
push dword [ebp - 0x64]
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x5c]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call esi
cmp edi, ebx
je 0x10068ad3
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 4]
call fcn.10074c8c
add esp, 0xc
test eax, eax
je 0x10068adc
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x53]
mov byte [ebp - 0x54], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x79c]
call fcn.10066281
add esp, 0xc
cmp eax, ebx
jne 0x10068a76
push dword [ebp - 0x5c]
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.1007dea0
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, ebx
je 0x10068a6d
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
mov dword [ebp - 0xc], 1
jmp 0x10068aea
push eax
call fcn.1005fb73
mov esi, eax
pop ecx
cmp esi, ebx
je 0x10068aca
lea eax, [ebp + 8]
mov edi, dword [esi]
push eax
lea eax, [ebp - 0x54]
push dword [ebp + 0x10]
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
push dword [ebp - 0x5c]
push dword [ebp - 4]
push eax
call fcn.1007e450
pop ecx
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
call dword [edi + 0x14]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10068ac1
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x10068aea
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x10068aea
push 0x1f4d
push 0x12
jmp 0x10068ae3
push 0x1f52
push 0xc
jmp 0x10068ae3
push 0x1f21
push 0xd
jmp 0x10068ae3
push 0x1f28
push 0x1c
call fcn.100680dd
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.1007de95
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop esi
pop ebx
leave
ret