Function at 0x10042d60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101158fc
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x10160068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [esi]
test edi, edi
jne 0x10042d9e
xor al, al
jmp 0x10042fac
lea eax, [edi + 0x38]
push eax
lea ecx, [ebp - 0xc4]
call fcn.10042fd0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x84], 0
je 0x10042f69
cmp dword [ebp - 0x6c], 0
je 0x10042f69
cmp dword [ebp - 0x64], 0
jne 0x10042f3b
mov edx, dword [esi + 8]
mov eax, edx
mov ecx, dword [esi + 0xc]
or eax, ecx
jne 0x10042ed8
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
mov ecx, edi
movlpd qword [ebp - 0x1c], xmm0
call fcn.1003ef10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x24], 0
jne 0x10042e46
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x10042ebe
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10042eb4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10042fca
jmp 0x10042eb4
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10042e02
test edi, edi
je 0x10042e02
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
push 8
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10042ea8
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10042e02
push edx
push ecx
call fcn.100cf0c8
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], eax
mov edx, edi
mov word [ebp - 0x34], ax
mov ecx, ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
or edx, ecx
je 0x10042f62
lea ecx, [ebp - 0x3c]
call fcn.100919a0
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
cmp edx, esi
ja 0x10042efe
jb 0x10042f62
cmp eax, ecx
jb 0x10042f62
push esi
push ecx
push edx
push eax
call fcn.100432c0
test al, al
je 0x10042f69
lea ecx, [ebp - 0x3c]
call fcn.10091b00
test eax, eax
js 0x10042f62
lea ecx, [ebp - 0x3c]
call fcn.10091b00
cmp eax, 3
jg 0x10042f62
call fcn.100f3205
xor edx, edx
mov ecx, 0xf0
div ecx
cmp edx, 1
jne 0x10042f69
mov bl, dl
jmp 0x10042f6b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10042f66
cmp ecx, eax
jbe 0x10042f66
sub ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
add edx, 2
cmp edx, dword [ebp - 0x64]
jb 0x10042f69
mov bl, 1
jmp 0x10042f6b
mov dword [esi + 0x10], ecx
xor bl, bl
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x7c]
call fcn.1000b6d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call fcn.1000b6d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.1000b6d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.1000b6d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ceb24
mov esp, ebp
pop ebp
ret 4
call fcn.100ecf9f
int3