Function at 0x107a65c
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1092845
call fcn.01027038
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.0101d0fa
pop ecx
mov ecx, eax
mov dword [ebp - 0x30], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x107a6a5
call fcn.0108b214
mov dword [ebp - 0x1c], eax
jmp 0x107a6a8
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
mov byte [ebp - 4], bl
jne 0x107a6bc
mov edi, 0x8007000e
jmp 0x107a8b8
call fcn.0108b252
mov edi, eax
cmp edi, ebx
jl 0x107a8ae
mov eax, dword [esi + 0x14]
cmp eax, ebx
jne 0x107a6d7
mov eax, 0x1001eb0
mov ecx, dword [ebp - 0x1c]
push 0x20
push eax
call fcn.0108b275
mov edi, eax
cmp edi, ebx
jl 0x107a8ae
push 0x110
call fcn.0101d0fa
pop ecx
mov ecx, eax
mov dword [ebp - 0x30], ecx
cmp ecx, ebx
mov byte [ebp - 4], 2
je 0x107a711
push dword [ebp - 0x1c]
call fcn.0108b2c9
mov dword [ebp - 0x18], eax
jmp 0x107a714
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
mov byte [ebp - 4], bl
je 0x107a772
push 0x20
push 0x1012a18
call fcn.0108b30d
mov edi, eax
cmp edi, ebx
jl 0x107a8a0
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 0x107a8a0
push dword [esi + 0x54]
call fcn.0101d0e9
movzx eax, word [esi + 0x58]
imul eax, eax, 0x44
push eax
call fcn.0101d0fa
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x54], eax
jne 0x107a77c
mov edi, 0x8007000e
jmp 0x107a8a0
cmp word [esi + 0x58], bx
mov dword [ebp - 0x20], ebx
jbe 0x107a88f
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 0x107a7a8
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 0x107a891
mov eax, dword [esi + 0x54]
add eax, dword [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0107a5ee
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x107a7e9
mov eax, 0x1001eb0
push ebx
push 0x8000080
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x10], edi
je 0x107a87b
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 0x107a87b
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 0x107a87b
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 0x107a870
cmp dword [eax + 0x38], ecx
jne 0x107a870
mov ecx, dword [eax + 0x3c]
cmp ecx, dword [ebp - 0x30]
jne 0x107a870
mov dword [eax + 0x40], ebx
jmp 0x107a87b
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 0x107a78c
xor edi, edi
cmp dword [ebp - 0x10], 0xffffffff
je 0x107a8a0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x107a8ae
push 1
call fcn.0107a37a
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.0107a3a0
push 1
lea ecx, [ebp - 0x40]
call fcn.0101937d
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret