Function at 0x10008fa0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100b50fe
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100f9124]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x20], ebx
call fcn.1008c1dc
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x10008ff6
push 0x80004005
call fcn.10002060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0xb8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], ebx
mov ebp, 1
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x20], ebp
je 0x10009167
push ebx
push 0x8000080
push 3
push ebx
push ebp
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000913b
lea ecx, [esp + 0x18]
push ecx
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x18], 0
mov ebx, eax
je 0x100090a2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100b7678
lea ecx, [esp + 0x20]
call fcn.100033e0
push 0x100f1078
lea ecx, [esp + 0x18]
mov dword [esp + 0xb4], ebp
call fcn.100033e0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0xb8], 2
call fcn.100056c0
cmp ebx, 0xffffffff
je 0x10009108
test ebx, ebx
je 0x100090fc
push ebx
call fcn.100899ef
add esp, 4
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
mov ebp, eax
push ebp
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100090f3
mov edx, dword [esp + 0x1c]
push 0
push edx
add esi, 0x24
push ebp
mov ecx, esi
call fcn.100088f0
mov esi, dword [esi]
mov ecx, dword [esp + 0xb8]
push esi
call fcn.100074b0
push ebp
call fcn.100899f4
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000948d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100b7678
lea ecx, [esp + 0x18]
call fcn.100033e0
lea eax, [esp + 0x14]
push eax
push 7
mov dword [esp + 0xb8], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100055d0
push 0x100b7678
lea ecx, [esp + 0x18]
call fcn.100033e0
lea ecx, [esp + 0x14]
push ecx
push 7
mov dword [esp + 0xb8], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100055d0
cmp dword [esi + 0x4c], ebx
je 0x10009296
call fcn.1008c1dc
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x1000918a
push 0x80004005
call fcn.10002060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10]
push 0x100f0694
mov ebx, 5
push eax
mov dword [esp + 0xb8], ebx
call fcn.1009590d
add esp, 8
test eax, eax
jne 0x10009207
lea ecx, [esi + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.10007f50
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 6
call fcn.10006a10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xb0], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009255
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10009255
mov edi, dword [esi + 0x20]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], ecx
call dword [0x100fa5b0]
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.10004a50
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 7
call fcn.100074b0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
mov byte [esp + 0xb0], bl
je 0x10009255
push eax
call fcn.10096194
add esp, 4
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
push 0
push eax
add esi, 0x24
push edi
mov ecx, esi
call fcn.100088f0
mov esi, dword [esi]
mov ecx, dword [esp + 0xb8]
push esi
call fcn.100074b0
lea eax, [edi - 0x10]
mov byte [esp + 0xb0], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x100093db
cmp dword [esi + 0x48], ebx
je 0x100093f0
call fcn.1008c1dc
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x100092b9
push 0x80004005
call fcn.10002060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10]
push 0x100f0694
mov ebx, 8
push eax
mov dword [esp + 0xb8], ebx
call fcn.1009590d
add esp, 8
test eax, eax
jne 0x1000931f
add esi, 0x20
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.10007f50
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 9
call fcn.10006a10
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], bl
call fcn.10004a30
jmp 0x1000935c
mov esi, dword [esi + 0x20]
push esi
lea ecx, [esp + 0x28]
call fcn.10005000
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 0xa
call fcn.100074b0
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
mov byte [esp + 0xb0], bl
je 0x1000935c
push eax
call fcn.10096194
add esp, 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.10007ba0
add esp, 8
mov esi, dword [esp + 0xb8]
push eax
mov ecx, esi
mov byte [esp + 0xb4], 0xb
call fcn.10006a10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xb0], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100093ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0xbc], 0
je 0x100093bf
push esi
call fcn.10006d40
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000948d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1000948d
mov eax, dword [esi + 0x10]
push 0x100f0694
push eax
call fcn.1009590d
add esp, 8
test eax, eax
jne 0x1000943c
add esi, 0x20
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.10007f50
add esp, 8
push eax
mov ecx, edi
mov dword [esp + 0xb4], 0xc
call fcn.10006a10
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], 0
call fcn.10004a30
jmp 0x1000947b
mov esi, dword [esi + 0x20]
push esi
lea ecx, [esp + 0x28]
call fcn.10005000
mov eax, dword [eax]
push eax
mov ecx, edi
mov dword [esp + 0xb4], 0xd
call fcn.100074b0
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
mov byte [esp + 0xb0], 0
je 0x1000947b
push eax
call fcn.10096194
add esp, 4
cmp dword [esp + 0xbc], ebx
je 0x1000948d
push edi
call fcn.10006d40
add esp, 4
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 8