Function at 0x416aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577130
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5f6998]
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 dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0x416ae2
lea eax, [ebp + 8]
xor ebx, ebx
push ebx
push eax
call fcn.005431b6
add esp, 8
test eax, eax
je 0x416b3a
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], esi
jb 0x416b06
mov eax, dword [ebp + 8]
push eax
call fcn.0043f967
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x38], esi
jb 0x416b2f
mov edx, dword [ebp + 0x24]
push edx
call fcn.0043f967
add esp, 4
xor eax, eax
mov word [ebp + 0x24], ax
jmp 0x416e5c
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x416b45
lea eax, [ebp + 8]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00568a88
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x416b64
mov eax, dword [eax + 4]
jmp 0x416b66
xor eax, eax
push 0x59094c
push eax
lea ecx, [ebp - 0x28]
call fcn.00567f25
push eax
call fcn.00545120
push 2
mov esi, eax
push ebx
push esi
call fcn.00544fe8
push esi
call fcn.00544ef9
mov ebx, eax
push ebx
call fcn.0043f972
push 0
push 0
push esi
mov edi, eax
call fcn.00544fe8
push esi
push ebx
push 1
push edi
call fcn.00544d48
push esi
mov dword [ebp - 0x34], eax
call fcn.00544a8a
xor esi, esi
add esp, 0x3c
cmp dword [ebp - 0x34], esi
jne 0x416c22
push edi
call fcn.0043f967
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00567cb8
mov byte [ebp - 4], 0
mov ebx, 8
cmp dword [ebp + 0x1c], ebx
jb 0x416beb
mov edx, dword [ebp + 8]
push edx
call fcn.0043f967
add esp, 4
mov edi, 7
xor eax, eax
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], esi
mov word [ebp + 8], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x38], ebx
jb 0x416c14
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.0043f967
add esp, 4
xor edx, edx
mov dword [ebp + 0x34], esi
mov word [ebp + 0x24], dx
jmp 0x416e5f
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call fcn.00561bcc
add esp, 0xc
mov byte [ebp - 0x14], 0
call fcn.00440a7e
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x416c4e
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov bl, 4
mov byte [ebp - 4], bl
movzx ecx, byte [ebp - 0x15]
movzx edx, byte [ebp - 0x16]
movzx eax, byte [ebp - 0x17]
push ecx
movzx ecx, byte [ebp - 0x18]
push edx
movzx edx, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push ecx
movzx ecx, byte [ebp - 0x1b]
push edx
movzx edx, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push ecx
movzx ecx, byte [ebp - 0x1e]
push edx
movzx edx, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push ecx
movzx ecx, byte [ebp - 0x21]
push edx
movzx edx, byte [ebp - 0x22]
push eax
movzx eax, byte [ebp - 0x23]
push ecx
movzx ecx, byte [ebp - 0x24]
push edx
push eax
push ecx
lea edx, [ebp - 0x2c]
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push edx
call fcn.004038b0
push edi
call fcn.0043f967
add esp, 0x4c
lea ecx, [ebp - 0x2c]
call fcn.00415a70
mov eax, dword [ebp + 0x24]
mov esi, 8
cmp dword [ebp + 0x38], esi
jae 0x416ce1
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403d90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00415a70
mov ecx, dword [ebp - 0x30]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x416d0e
push 0x80004005
call fcn.00401090
mov eax, dword [ebp - 0x2c]
push ecx
push eax
call fcn.005430ac
add esp, 8
test eax, eax
jne 0x416dc5
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00567cb8
mov byte [ebp - 4], 0
cmp dword [ebp + 0x1c], esi
jb 0x416d89
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043f967
add esp, 4
mov edi, 7
xor ebx, ebx
xor edx, edx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x38], esi
jb 0x416db4
mov eax, dword [ebp + 0x24]
push eax
call fcn.0043f967
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], cx
lea eax, [ecx + 1]
jmp 0x416e61
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416de7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00567cb8
mov byte [ebp - 4], 0
cmp dword [ebp + 0x1c], esi
jb 0x416e2b
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043f967
add esp, 4
mov edi, 7
xor ebx, ebx
xor edx, edx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x38], esi
jb 0x416e56
mov eax, dword [ebp + 0x24]
push eax
call fcn.0043f967
add esp, 4
xor ecx, ecx
mov word [ebp + 0x24], cx
mov dword [ebp + 0x34], ebx
xor eax, eax
mov dword [ebp + 0x38], edi
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.00542c3e
mov esp, ebp
pop ebp
ret