Function at 0x4a1540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ecd4
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [section..data]
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, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xdc], eax
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x4a158b
mov eax, dword [eax]
xor ecx, ecx
xorps xmm0, xmm0
mov word [eax], cx
lea eax, [ebp - 0xd0]
push 0x5c
push ecx
push eax
mov byte [ebp - 0x20], cl
movq qword [ebp - 0x1f], xmm0
mov dword [ebp - 0x17], ecx
mov word [ebp - 0x13], cx
mov byte [ebp - 0x11], cl
mov byte [ebx], cl
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0xd0]
push eax
call fcn.00506b40
add esp, 4
push 4
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4a15ef
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x4a15f1
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x6c]
push 0x80
push 3
sub esp, 8
push esi
call fcn.0045e1c0
test al, al
je 0x4a1775
lea eax, [ebp - 0xd8]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x6c]
movlpd qword [ebp - 0xd8], xmm0
call fcn.0045e3e0
mov eax, dword [ebp - 0xd8]
or eax, dword [ebp - 0xd4]
je 0x4a1775
push 0x568c40
push 0x1000
mov dword [ebp - 0x70], 0
call fcn.005062f0
mov edi, eax
add esp, 8
test edi, edi
je 0x4a1775
mov esi, dword [ebp - 0x6c]
nop
test esi, esi
je 0x4a16d6
cmp dword [esi], 0xffffffff
je 0x4a16d6
push 0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 0
push eax
push 0x1000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a16be
cmp byte [ebx], 0
jne 0x4a16be
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x4a16be
push eax
lea eax, [ebp - 0xd0]
push edi
push eax
call fcn.00506ba0
add esp, 0xc
mov dword [ebp - 0x70], 0
jmp 0x4a1670
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a16d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4a16d6
mov dword [esi], 0xffffffff
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00506a20
xor eax, eax
push 0x40
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
call sub.MSVCR120.dll_memset
add esp, 0x14
lea ebx, [ebp - 0x68]
xor edi, edi
lea ebx, [ebx]
movzx eax, byte [ebp + edi - 0x20]
push eax
push str._02X
push 3
push ebx
call fcn.00423800
inc edi
add esp, 0x10
add ebx, 4
cmp edi, 0x10
jb 0x4a1710
cmp word [ebp - 0x68], 0
jne 0x4a174c
xor ecx, ecx
lea eax, [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0xdc]
push eax
call fcn.00405240
mov bl, 1
jmp 0x4a177a
lea ecx, [ebp - 0x68]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a1752
sub ecx, edx
lea eax, [ebp - 0x68]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0xdc]
push eax
call fcn.00405240
mov bl, 1
jmp 0x4a177a
mov esi, dword [ebp - 0x6c]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4a17ae
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x4a179d
test ecx, ecx
je 0x4a179d
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x6c], 0
mov al, bl
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.00505b1e
mov esp, ebp
pop ebp
ret 8