Function at 0x514230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8f50
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6ade1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 8], 0
jne 0x51426c
xor al, al
jmp 0x5144e1
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x51428a
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0056a360
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x2c]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], 0
call fcn.00423ea0
mov byte [ebp - 0x15], al
mov ecx, dword [ebp + 8]
push ecx
push 1
push 4
mov edx, dword [ebp - 0x2c]
add edx, 8
push edx
call fcn.0058f789
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x5142d7
xor al, al
jmp 0x5144e1
mov eax, dword [ebp + 8]
push eax
push 1
push 4
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
push ecx
call fcn.0058f789
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x514308
mov edx, dword [ebp - 0x2c]
mov dword [edx + 8], 0
xor al, al
jmp 0x5144e1
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x514388
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
shr edx, 8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
shl ecx, 0x18
or ecx, edx
and ecx, 0xff00ff00
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
shr eax, 0x18
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 8]
shl edx, 8
or edx, eax
and edx, 0xff00ff
or edx, ecx
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
shr edx, 8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
shl ecx, 0x18
or ecx, edx
and ecx, 0xff00ff00
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
shr eax, 0x18
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0xc]
shl edx, 8
or edx, eax
and edx, 0xff00ff
or edx, ecx
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0xc], 0
jne 0x514398
mov al, 1
jmp 0x5144e1
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
shl eax, 1
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056a340
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 4], edx
jmp 0x5143e1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
jne 0x5143f8
xor al, al
jmp 0x5144e1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
push eax
push 8
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push edx
call fcn.0058f789
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0xc]
je 0x51445c
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0056a360
add esp, 4
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0xc], 0
xor al, al
jmp 0x5144e1
movzx edx, byte [ebp - 0x15]
test edx, edx
jne 0x5144df
mov dword [ebp - 0x1c], 0
jmp 0x514476
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
shl edx, 1
cmp dword [ebp - 0x1c], edx
jae 0x5144df
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
shr eax, 8
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 4]
mov esi, dword [ebp - 0x1c]
mov edx, dword [edx + esi*4]
shl edx, 0x18
or edx, eax
and edx, 0xff00ff00
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov esi, dword [ebp - 0x1c]
mov eax, dword [eax + esi*4]
shr eax, 0x18
mov esi, dword [ebp - 0x2c]
mov esi, dword [esi + 4]
mov edi, dword [ebp - 0x1c]
mov esi, dword [esi + edi*4]
shl esi, 8
or esi, eax
and esi, 0xff00ff
or esi, edx
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], esi
jmp 0x51446d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4