Function at 0x100048a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067e94
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100801a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x10004904
lea ebx, [ebx]
mov edi, dword [esi + 8]
test edi, edi
je 0x100048fa
push dword [edi + 0xc]
call fcn.10042d30
push 0x10
push edi
call fcn.10042d22
add esp, 0xc
mov eax, dword [ebx + 4]
add esi, 0x10
cmp esi, eax
jne 0x100048e0
mov ecx, dword [ebx]
cmp ecx, eax
je 0x1000490d
mov dword [ebx + 4], ecx
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
jb 0x10004919
mov eax, dword [ebp + 8]
push 0x10078e04
push eax
call fcn.10047a70
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x10004937
xor bl, bl
jmp 0x10004b19
lea edi, [ebx + 0x160]
push 0xffffffffffffffff
push dword [edi]
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebx + 0x128]
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp ecx, eax
je 0x1000496d
cmp dword [ebp + 0x1c], 0x10
jb 0x10004964
mov eax, dword [ebp + 8]
push dword [ebp + 0x18]
push eax
call fcn.10006b20
mov byte [ebp - 4], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.1004afab
push 1
push dword [ebp - 0x14]
push esi
call fcn.10047fd8
push esi
call fcn.1004ad99
add esp, 0x20
test eax, eax
jne 0x10004aa2
push esi
push 1
push 8
push 0x10098ec8
call fcn.1004afab
push esi
push 1
push 2
push 0x100952d8
call fcn.1004afab
movzx eax, word [0x100952d8]
push esi
push eax
push 1
push 0x100952da
call fcn.1004afab
mov eax, dword [0x100952d8]
add eax, 2
push 0x10
movzx esi, ax
call fcn.10042cf2
mov edi, eax
mov dword [ebp - 0x18], edi
lea ecx, [esi + 7]
mov byte [ebp - 4], 2
and ecx, 0xfffffff8
mov dword [edi + 8], 1
add ecx, 2
mov dword [edi], 0
push ecx
mov dword [edi + 4], 4
call fcn.10042d35
push esi
mov dword [edi + 0xc], eax
add eax, 2
push 0x100952d8
push eax
mov byte [ebp - 4], 0
call fcn.10044580
movzx eax, word [0x100952d8]
add esp, 0x44
mov dword [edi], eax
mov edx, dword [ebx + 4]
mov eax, edx
sub eax, dword [ebx]
test eax, 0xfffffff0
jne 0x10004a55
mov eax, dword [0x10098ec8]
mov ecx, dword [0x10098ecc]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
mov eax, dword [0x10098ec8]
mov ecx, dword [0x10098ecc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edi
cmp edx, dword [ebx + 8]
je 0x10004a82
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [edx + 4], ecx
mov dword [edx + 8], edi
mov dword [edx + 0xc], eax
add dword [ebx + 4], 0x10
jmp 0x10004a8e
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
push edx
call fcn.100096f0
mov esi, dword [ebp - 0x10]
push esi
call fcn.1004ad99
add esp, 4
test eax, eax
je 0x100049a3
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, eax
and ecx, 0xfffffff0
push 0xffffffffffffffff
push dword [ebx + 0x158]
mov edi, dword [ecx + eax - 0x10]
sub edi, dword [ebx + 0x20]
mov esi, dword [ecx + eax - 0xc]
sbb esi, dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], esi
push dword [ebx + 0x158]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [ebx + 4]
mov ecx, esi
sub ecx, dword [ebx]
and ecx, 0xfffffff0
add ecx, dword [ebx]
cmp ecx, esi
je 0x10004b08
lea ebx, [ebx]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [ecx - 0x10], eax
mov dword [ecx - 0xc], edx
mov eax, dword [ecx + 8]
mov dword [ecx - 8], eax
add ecx, 0x10
cmp ecx, esi
jne 0x10004af0
push dword [ebp - 0x10]
add dword [ebx + 4], 0xfffffff0
call fcn.10047c93
add esp, 4
mov bl, 1
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x10004b49
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004b3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004b5f
push ecx
push edx
call fcn.10042d22
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call fcn.1004fd3c
int3