Function at 0x41a510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d190
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6459b8]
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 0x41a552
lea eax, [ebp + 8]
xor ebx, ebx
push ebx
push eax
call fcn.00547156
add esp, 8
test eax, eax
je 0x41a5aa
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], esi
jb 0x41a576
mov eax, dword [ebp + 8]
push eax
call fcn.00443897
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 0x41a59f
mov edx, dword [ebp + 0x24]
push edx
call fcn.00443897
add esp, 4
xor eax, eax
mov word [ebp + 0x24], ax
jmp 0x41a8cc
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x41a5b5
lea eax, [ebp + 8]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0056cca0
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x41a5d4
mov eax, dword [eax + 4]
jmp 0x41a5d6
xor eax, eax
push 0x597c7c
push eax
lea ecx, [ebp - 0x28]
call fcn.0056c174
push eax
call fcn.005490c0
push 2
mov esi, eax
push ebx
push esi
call fcn.00548f88
push esi
call fcn.00548e99
mov ebx, eax
push ebx
call fcn.004438a2
push 0
push 0
push esi
mov edi, eax
call fcn.00548f88
push esi
push ebx
push 1
push edi
call fcn.00548ce8
push esi
mov dword [ebp - 0x34], eax
call fcn.00548a2a
xor esi, esi
add esp, 0x3c
cmp dword [ebp - 0x34], esi
jne 0x41a692
push edi
call fcn.00443897
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0056bf07
mov byte [ebp - 4], 0
mov ebx, 8
cmp dword [ebp + 0x1c], ebx
jb 0x41a65b
mov edx, dword [ebp + 8]
push edx
call fcn.00443897
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 0x41a684
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00443897
add esp, 4
xor edx, edx
mov dword [ebp + 0x34], esi
mov word [ebp + 0x24], dx
jmp 0x41a8cf
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call fcn.00565c9a
add esp, 0xc
mov byte [ebp - 0x14], 0
call fcn.00444998
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41a6be
push 0x80004005
call fcn.00403760
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.00405f60
push edi
call fcn.00443897
add esp, 0x4c
lea ecx, [ebp - 0x2c]
call fcn.00419450
mov eax, dword [ebp + 0x24]
mov esi, 8
cmp dword [ebp + 0x38], esi
jae 0x41a751
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.00406440
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00419450
mov ecx, dword [ebp - 0x30]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x41a77e
push 0x80004005
call fcn.00403760
mov eax, dword [ebp - 0x2c]
push ecx
push eax
call fcn.0054704c
add esp, 8
test eax, eax
jne 0x41a835
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 0x41a7b5
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 0x41a7d8
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.0056bf07
mov byte [ebp - 4], 0
cmp dword [ebp + 0x1c], esi
jb 0x41a7f9
mov ecx, dword [ebp + 8]
push ecx
call fcn.00443897
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 0x41a824
mov eax, dword [ebp + 0x24]
push eax
call fcn.00443897
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x34], ebx
mov word [ebp + 0x24], cx
lea eax, [ecx + 1]
jmp 0x41a8d1
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 0x41a857
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 0x41a87a
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.0056bf07
mov byte [ebp - 4], 0
cmp dword [ebp + 0x1c], esi
jb 0x41a89b
mov ecx, dword [ebp + 8]
push ecx
call fcn.00443897
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 0x41a8c6
mov eax, dword [ebp + 0x24]
push eax
call fcn.00443897
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.00546bde
mov esp, ebp
pop ebp
ret