Function at 0x100506f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9b28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100dc008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x24], 8
jne 0x10050744
mov dword [edi + 0x20], 0x2c
xor eax, eax
mov dword [edi + 0x14], 0x930
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x100dd790
push 0xa290
call fcn.1007bfcf
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x10050770
mov ebx, 0x8007000e
jmp 0x1005096b
push 0xa290
push 0
push esi
call fcn.1008b230
mov ecx, dword [edi + 0x10]
add esp, 0xc
test ecx, ecx
je 0x100507c3
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0xa290
push esi
push 0
push dword [edi + 0x20]
call fcn.1001d060
mov ebx, eax
test ebx, ebx
js 0x1005096b
cmp ebx, 1
je 0x1005096b
cmp dword [ebp + 8], 0xa290
je 0x10050823
jmp 0x10050966
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x14]
mov ebx, dword [ebp + 8]
push 0
push ecx
push 0
push eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100507f3
call fcn.10015440
mov ebx, eax
jmp 0x1005096b
push 0
lea eax, [ebp + 8]
push eax
push 0xa290
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10050816
call fcn.10015440
mov ebx, eax
jmp 0x1005096b
cmp dword [ebp + 8], 0xa290
jne 0x10050966
push 0x8001
push esi
call fcn.100506b0
test eax, eax
je 0x1005084e
mov dword [edi + 0x14], 0x800
xor ebx, ebx
mov dword [edi + 0x1c], 0x18
mov dword [edi + 0x18], 0
jmp 0x1005096b
push 0x9311
push esi
call fcn.100506b0
test eax, eax
je 0x10050879
mov dword [edi + 0x14], 0x930
xor ebx, ebx
mov dword [edi + 0x18], 0x10
mov dword [edi + 0x1c], 0x10
jmp 0x1005096b
push 0x9319
push esi
call fcn.100506b0
test eax, eax
je 0x100508a4
mov dword [edi + 0x14], 0x930
xor ebx, ebx
mov dword [edi + 0x18], 0x18
mov dword [edi + 0x1c], 0x18
jmp 0x1005096b
push 0x9911
push esi
call fcn.100506b0
test eax, eax
je 0x100508cf
mov dword [edi + 0x14], 0x990
xor ebx, ebx
mov dword [edi + 0x18], 0x10
mov dword [edi + 0x1c], 0x10
jmp 0x1005096b
push 0x9919
push esi
call fcn.100506b0
test eax, eax
je 0x100508f7
mov dword [edi + 0x14], 0x990
xor ebx, ebx
mov dword [edi + 0x18], 0x18
mov dword [edi + 0x1c], 0x18
jmp 0x1005096b
push 0x9209
push esi
call fcn.100506b0
test eax, eax
je 0x1005091f
mov dword [edi + 0x14], 0x920
xor ebx, ebx
mov dword [edi + 0x18], 8
mov dword [edi + 0x1c], 0x18
jmp 0x1005096b
push 0x9201
push esi
call fcn.100506b0
test eax, eax
je 0x10050947
mov dword [edi + 0x14], 0x920
xor ebx, ebx
mov dword [edi + 0x1c], 0x10
mov dword [edi + 0x18], 0
jmp 0x1005096b
cmp dword [edi + 0x24], 4
jne 0x1005095f
mov dword [edi + 0x14], 0x930
xor ebx, ebx
mov dword [edi + 0x18], 0
jmp 0x1005096b
mov dword [edi + 0x24], 0
mov ebx, 0xe00e1001
test esi, esi
je 0x10050978
push esi
call fcn.1007bfd8
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4