Function at 0x10084738
Capabilities:
Read file on windows

Disassembly:
push 0x40
push 0x10092438
call fcn.100647f4
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], 0x80004021
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp + 8], ebx
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x34]
call fcn.10086bf0
lea ecx, [ebp - 0x34]
call fcn.10086c10
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], ebx
je 0x100849ce
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x100847ba
mov dword [ebp - 0x1c], 0x80070057
jmp 0x100849d1
cmp byte [esi + 0x34c], 1
jne 0x10084809
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push edi
push dword [esi + 0x350]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100847f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100847f0
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1c], eax
jmp 0x100849d1
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x800703e4
jmp 0x100847f0
cmp byte [esi + 0x60], 1
jne 0x100848dc
mov ecx, dword [esi + 0x64]
cmp ecx, ebx
je 0x1008488b
mov edx, dword [esi + 0x68]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], ecx
mov eax, dword [esi + 0x5c]
sub edx, eax
add eax, ecx
cmp dword [ebp - 0x20], edx
ja 0x1008485d
mov edi, dword [ebp - 0x20]
push edi
push eax
push dword [ebp - 0x28]
call fcn.10062770
add esp, 0xc
mov eax, dword [ebp - 0x24]
sub eax, dword [esi + 0x5c]
cmp edi, eax
jne 0x10084855
push dword [esi + 0x64]
call fcn.10063d62
pop ecx
mov dword [esi + 0x64], ebx
add dword [esi + 0x5c], edi
jmp 0x100849ce
push edx
push eax
push dword [ebp - 0x28]
call fcn.10062770
push dword [esi + 0x64]
call fcn.10063d62
add esp, 0x10
mov dword [esi + 0x64], ebx
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp - 0x24]
sub ecx, eax
add dword [ebp - 0x28], ecx
sub eax, dword [ebp - 0x24]
add dword [ebp - 0x20], eax
mov dword [esi + 0x5c], ebx
jmp 0x10084813
push dword [ebp + 0xc]
call fcn.10063c93
pop ecx
mov dword [esi + 0x64], eax
cmp eax, ebx
jne 0x100848a7
mov dword [ebp - 0x1c], 0x8007000e
jmp 0x100849d1
lea ecx, [esi + 0x344]
push ecx
push 1
push 2
push ebx
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x70]
push eax
call dword [esi + 0x44]
add esp, 0x1c
cmp eax, ebx
jl 0x100847f0
jne 0x100848d7
mov dword [ebp - 0x1c], 0x80070026
jmp 0x100849d1
mov dword [esi + 0x68], eax
jmp 0x10084886
cmp dword [esi + 0x4c], ebx
jne 0x100848ed
mov dword [ebp - 0x1c], 0x80070548
jmp 0x100849d1
lea edi, [esi + 0x54]
mov eax, dword [edi]
cmp eax, ebx
je 0x100849a1
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jl 0x100849d1
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push eax
call dword [ecx + 0x18]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jl 0x100849d1
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp - 0x24]
sub ecx, eax
cmp dword [ebp - 0x20], ecx
ja 0x10084968
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
add eax, ecx
push eax
push dword [ebp - 0x28]
call fcn.10062770
add esp, 0xc
mov eax, dword [ebp - 0x24]
sub eax, dword [esi + 0x5c]
cmp dword [ebp - 0x20], eax
jne 0x10084960
mov eax, dword [edi]
cmp eax, ebx
je 0x10084960
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
mov eax, dword [ebp - 0x20]
add dword [esi + 0x5c], eax
jmp 0x100849ce
push ecx
mov ecx, dword [ebp - 0x2c]
add eax, ecx
push eax
push dword [ebp - 0x28]
call fcn.10062770
add esp, 0xc
mov eax, dword [edi]
cmp eax, ebx
je 0x10084988
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp - 0x24]
sub ecx, eax
add dword [ebp - 0x28], ecx
sub eax, dword [ebp - 0x24]
add dword [ebp - 0x20], eax
mov dword [esi + 0x5c], ebx
jmp 0x100848ed
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x48]
push edx
lea edx, [ebp - 0x50]
push edx
push edi
push ebx
push eax
call dword [ecx + 0x1c]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jge 0x100849db
cmp eax, 0xc00d0bcf
jne 0x100849d1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.100849f2
jmp 0x10084a1a
cmp word [ebp - 0x30], 1
je 0x10084999
mov eax, dword [edi]
cmp eax, ebx
je 0x10084999
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
jmp 0x10084999
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.10064839
ret 8