Function at 0x107a651
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10926da
call fcn.01026ef8
sub esp, 0x34
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
or dword [ebp - 0x10], 0xffffffff
push 0x10c
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
call fcn.0101d067
pop ecx
mov ecx, eax
mov dword [ebp - 0x30], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x107a69a
call fcn.0108b0a9
mov dword [ebp - 0x1c], eax
jmp 0x107a69d
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
mov byte [ebp - 4], bl
jne 0x107a6b1
mov edi, 0x8007000e
jmp 0x107a8ad
call fcn.0108b0e7
mov edi, eax
cmp edi, ebx
jl 0x107a8a3
mov eax, dword [esi + 0x14]
cmp eax, ebx
jne 0x107a6cc
mov eax, 0x1001ea8
mov ecx, dword [ebp - 0x1c]
push 0x20
push eax
call fcn.0108b10a
mov edi, eax
cmp edi, ebx
jl 0x107a8a3
push 0x110
call fcn.0101d067
pop ecx
mov ecx, eax
mov dword [ebp - 0x30], ecx
cmp ecx, ebx
mov byte [ebp - 4], 2
je 0x107a706
push dword [ebp - 0x1c]
call fcn.0108b15e
mov dword [ebp - 0x18], eax
jmp 0x107a709
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
mov byte [ebp - 4], bl
je 0x107a767
push 0x20
push 0x10129a8
call fcn.0108b1a2
mov edi, eax
cmp edi, ebx
jl 0x107a895
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, dword [eax]
lea edi, [ebp - 0x24]
push edi
push 2
lea ecx, [esi + 0x58]
push ecx
push eax
call dword [edx + 0xc]
mov edi, eax
cmp edi, ebx
jl 0x107a895
push dword [esi + 0x54]
call fcn.01073bda
movzx eax, word [esi + 0x58]
imul eax, eax, 0x44
push eax
call fcn.0101d067
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x54], eax
jne 0x107a771
mov edi, 0x8007000e
jmp 0x107a895
cmp word [esi + 0x58], bx
mov dword [ebp - 0x20], ebx
jbe 0x107a884
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
je 0x107a79d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x10], 0xffffffff
mov eax, dword [esi + 0x54]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
lea edi, [ebp - 0x24]
push edi
push 0x44
push eax
push ecx
call dword [edx + 0xc]
mov edi, eax
cmp edi, ebx
jl 0x107a886
mov eax, dword [esi + 0x54]
add eax, dword [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0107a5e3
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x107a7de
mov eax, 0x1001ea8
push ebx
push 0x8000080
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x10], edi
je 0x107a870
push ebx
push ebx
push 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
test eax, eax
je 0x107a870
push ebx
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x107a870
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x54]
or dword [ebp - 0x10], 0xffffffff
add eax, ecx
mov ecx, dword [ebp - 0x2c]
cmp dword [eax + 0x34], ecx
jne 0x107a865
cmp dword [eax + 0x38], ecx
jne 0x107a865
mov ecx, dword [eax + 0x3c]
cmp ecx, dword [ebp - 0x30]
jne 0x107a865
mov dword [eax + 0x40], ebx
jmp 0x107a870
mov byte [esi + 0x52], 1
mov dword [eax + 0x40], 1
movzx eax, word [esi + 0x58]
inc dword [ebp - 0x20]
add dword [ebp - 0x14], 0x44
cmp dword [ebp - 0x20], eax
jl 0x107a781
xor edi, edi
cmp dword [ebp - 0x10], 0xffffffff
je 0x107a895
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x107a8a3
push 1
call fcn.0107a36f
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.0107a395
push 1
lea ecx, [ebp - 0x40]
call fcn.0101930d
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret