Function at 0x4189c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556d7b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x5d7b20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x4c4], ebx
mov dword [ebp - 0x4b4], edi
mov dword [ebp - 0x4b0], edi
mov dword [ebp - 0x4c0], edi
cmp ebx, edi
je 0x418a77
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x418a17
sub eax, edx
sar eax, 1
je 0x418a77
push 0x57032c
lea eax, [ebp - 0x4b0]
push esi
push eax
call fcn.00540405
mov eax, dword [ebp - 0x4b0]
add esp, 0xc
cmp eax, edi
je 0x418a77
push eax
push 1
lea edx, [ebp - 0x4b8]
xor ecx, ecx
push 2
push edx
mov word [ebp - 0x4b8], cx
call fcn.0054032a
add esp, 0x10
test eax, eax
jne 0x418a95
mov eax, dword [ebp - 0x4b0]
push eax
call fcn.0054006c
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret
mov ax, word [ebp - 0x4b8]
cmp al, 0xff
jne 0x418aa9
cmp ah, 0xfe
je 0x418b73
mov ecx, dword [ebp - 0x4b0]
push ecx
call fcn.0054006c
push 0x570328
lea edx, [ebp - 0x4b0]
push esi
push edx
mov dword [ebp - 0x4b0], edi
call fcn.00540405
mov esi, dword [ebp - 0x4b0]
add esp, 0x10
cmp esi, edi
je 0x418a77
push 0x20a
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.0053e550
push esi
lea ecx, [ebp - 0x428]
push 0x82
push ecx
call fcn.0053ff46
add esp, 0x18
test eax, eax
je 0x418d1f
lea esp, [esp]
lea edx, [ebp - 0x428]
push ebx
push edx
call fcn.0053ea56
add esp, 8
test eax, eax
jne 0x418d15
push 0x20a
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.0053e550
mov ecx, dword [ebp - 0x4b0]
push ecx
lea edx, [ebp - 0x428]
push 0x82
push edx
call fcn.0053ff46
add esp, 0x18
test eax, eax
jne 0x418b10
mov eax, dword [ebp - 0x4b0]
push eax
call fcn.0054006c
mov eax, dword [ebp - 0x4c0]
add esp, 4
jmp 0x418a79
push 0x20a
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0053e550
mov ecx, dword [ebp - 0x4b0]
push ecx
lea edx, [ebp - 0x21c]
push 0x104
push edx
call fcn.0053ff46
add esp, 0x18
test eax, eax
je 0x418d1f
jmp 0x418bb6
mov ebx, dword [ebp - 0x4c4]
call fcn.0044c104
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x418cdc
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x4bc], eax
lea ecx, [ebp - 0x4bc]
push ecx
lea edx, [ebp - 0x21c]
push edx
mov dword [ebp - 4], edi
call fcn.004188d0
mov esi, dword [ebp - 0x4bc]
add esp, 8
test eax, eax
je 0x418c38
push 3
lea eax, [ebp - 0x4a8]
push ebx
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 0x4ac], eax
call fcn.0040b3a0
mov ecx, dword [ebp - 0x4ac]
or dword [ebp - 0x4b4], 1
push ecx
push esi
call fcn.0053fec0
add esp, 8
test eax, eax
je 0x418c38
mov bl, 1
jmp 0x418c3a
xor bl, bl
test byte [ebp - 0x4b4], 1
je 0x418c63
mov eax, dword [ebp - 0x4ac]
and dword [ebp - 0x4b4], 0xfffffffe
lea edx, [ebp - 0x4a8]
cmp eax, edx
je 0x418c63
push eax
call fcn.0053f854
add esp, 4
test bl, bl
jne 0x418ce6
push 0x20a
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0053e550
lea eax, [esi - 0x10]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418c9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x4b0]
push ecx
lea edx, [ebp - 0x21c]
push 0x104
push edx
call fcn.0053ff46
add esp, 0xc
test eax, eax
jne 0x418bb0
mov eax, dword [ebp - 0x4b0]
push eax
call fcn.0054006c
mov eax, dword [ebp - 0x4c0]
add esp, 4
jmp 0x418a79
push 0x80004005
call fcn.00403e70
lea ecx, [ebp - 0x4bc]
mov dword [ebp - 0x4c0], 1
call fcn.00417700
mov eax, dword [ebp - 0x4b0]
push eax
call fcn.0054006c
mov eax, dword [ebp - 0x4c0]
add esp, 4
jmp 0x418a79
mov dword [ebp - 0x4c0], 1
mov eax, dword [ebp - 0x4b0]
push eax
call fcn.0054006c
mov eax, dword [ebp - 0x4c0]
add esp, 4
jmp 0x418a79