Function at 0x100502a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ebbac
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x10127008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebp - 0x10c], eax
test eax, eax
jne 0x100502e3
xor al, al
jmp 0x10050592
lea esi, [eax + 0x38]
push esi
lea ecx, [ebp - 0xbc]
call fcn.10009b60
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0xa4]
call fcn.10009b60
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10009b60
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [ebp - 0x74]
call fcn.10009b60
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 4
cmp dword [ebp - 0x7c], 0
je 0x10050573
cmp dword [ebp - 0x64], 0
je 0x10050573
cmp dword [ebp - 0x5c], 0
jne 0x10050540
mov edx, dword [edi + 8]
mov eax, edx
mov ecx, dword [edi + 0xc]
or eax, ecx
jne 0x1005048b
mov ecx, dword [ebp - 0x10c]
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call fcn.1003f8e0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x20], 0
jne 0x100503f3
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x1005046b
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10050461
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100505af
jmp 0x10050461
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100503a9
test esi, esi
je 0x100503a9
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10050455
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100503a9
push edx
push ecx
call fcn.100a97f9
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], eax
mov edx, esi
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x10c]
mov ecx, eax
mov dword [edi + 8], esi
mov dword [edi + 0xc], eax
or edx, ecx
je 0x10050567
lea ecx, [ebp - 0x38]
call fcn.1009a220
mov esi, dword [edi + 0xc]
mov edx, dword [ebp - 0x34]
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x38]
cmp edx, esi
ja 0x100504b9
jb 0x10050567
cmp eax, ecx
jb 0x10050567
push esi
push ecx
push edx
push eax
call fcn.10050800
test al, al
je 0x10050573
lea eax, [ebp - 0x38]
push eax
call fcn.100b2cf3
add esp, 4
test eax, eax
je 0x10050567
movups xmm1, xmmword [eax]
movups xmm0, xmmword [eax + 0x10]
psrldq xmm1, 8
movd eax, xmm1
movups xmmword [ebp - 0xd0], xmm0
test eax, eax
js 0x10050567
lea eax, [ebp - 0x38]
push eax
call fcn.100b2cf3
add esp, 4
test eax, eax
je 0x10050525
movups xmm1, xmmword [eax]
movups xmm0, xmmword [eax + 0x10]
psrldq xmm1, 8
movd eax, xmm1
movups xmmword [ebp - 0xf4], xmm0
cmp eax, 3
jg 0x10050567
call fcn.100b2730
xor edx, edx
mov ecx, 0xf0
div ecx
cmp edx, 1
jne 0x10050573
mov byte [ebp - 0x105], dl
jmp 0x1005057a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10050570
cmp ecx, eax
jbe 0x10050570
sub ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
add edx, 2
cmp edx, dword [ebp - 0x5c]
jb 0x10050573
mov byte [ebp - 0x105], 1
jmp 0x1005057a
mov dword [edi + 0x10], ecx
mov byte [ebp - 0x105], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.100044b0
mov al, byte [ebp - 0x105]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a9455
mov esp, ebp
pop ebp
ret 4
call fcn.100aec89
int3