Function at 0x5516c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9f2b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5f300c]
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 edi, ecx
mov dword [ebp - 0x7c], edi
xor ebx, ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x3c], 1
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x3a], bl
push ecx
push 0x20000
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], ebx
call fcn.0040a750
mov byte [ebp - 4], 1
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x194]
call eax
mov esi, dword [ebp - 0x8c]
test al, al
jne 0x5519f9
xor eax, eax
mov dword [ebp - 0x68], vtable.FilePath.0
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
push eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.0054e6b0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040ab30
cmp byte [ebp + 8], bl
je 0x5517d2
lea eax, [edi + 0x7d8]
mov ecx, eax
mov dword [ebp - 0x6c], eax
call fcn.0052a180
lea eax, [edi + 0x7c4]
mov dword [ebp - 0x70], eax
jmp 0x5517f6
lea eax, [edi + 0x7c4]
mov ecx, eax
mov dword [ebp - 0x70], eax
call fcn.0052a960
lea ecx, [edi + 0x7c4]
call fcn.0052a180
lea eax, [edi + 0x7d8]
mov dword [ebp - 0x6c], eax
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, dword [ebp - 0x88]
add esp, 4
sub ecx, esi
mov dword [ebp - 0x78], ecx
push eax
push ecx
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push eax
push esi
mov dword [ebp - 0x74], eax
call fcn.0050e8a0
mov dword [ebp - 0x80], eax
add esp, 0x18
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x551877
mov edi, dword [ebp - 0x70]
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.0055efc0
cmp byte [ebp + 8], 0
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x6c]
push ebx
push eax
push 0x7d1
jne 0x551850
mov ecx, edi
call fcn.00529e10
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push dword [ebp - 0x78]
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x551831
mov edi, dword [ebp - 0x7c]
cmp byte [ebp + 8], 0
je 0x5518af
push 0
push 0x5d3f48
lea ecx, [edi + 0xb0c]
call fcn.00528190
neg eax
mov ecx, edi
sbb eax, eax
and eax, 0xfffffa24
add eax, 0x7d0
mov dword [edi + 0x8a0], eax
mov eax, dword [edi]
call dword [eax + 0x158]
jmp 0x5518ba
lea ecx, [edi + 0x7c4]
call fcn.0052a9c0
mov eax, dword [edi + 0xbb0]
mov edx, dword [ebp - 0x4c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0xbc4]
shl ecx, 5
mov dword [ecx + eax + 0x34], edx
mov eax, dword [edi + 0xbb0]
mov ecx, dword [edi + 0xbc4]
lea eax, [eax + eax*4]
shl eax, 5
add eax, ecx
cmp dword [eax + 0x34], 0
jne 0x5518f9
mov ecx, dword [ebp - 0x80]
mov dword [eax + 0x34], ecx
mov ecx, dword [edi + 0xbc4]
mov eax, dword [edi + 0xbb0]
lea eax, [eax + eax*4]
shl eax, 5
cmp dword [eax + ecx + 0x34], 0
je 0x551918
mov dword [edi + 0x67c], 0xfde9
jmp 0x551930
push 0
push 0x5d3f90
lea ecx, [edi + 0xb0c]
call fcn.00528190
mov dword [edi + 0x67c], eax
cmp byte [ebp + 8], 0
push 0
je 0x55194c
mov ecx, dword [ebp - 0x6c]
push 0
push 0x870
call fcn.00529e10
jmp 0x5519f9
push dword [edi + 0x67c]
lea ecx, [edi + 0x7c4]
push 0x7f5
call fcn.00529e10
lea ecx, [edi + 0x7c4]
call fcn.0052a1e0
mov eax, dword [edi + 0xbb0]
push 5
push str.x.txt
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0xbc4]
shl ecx, 5
add eax, 0x54
add ecx, eax
call fcn.0040af10
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x184]
mov ecx, edi
call fcn.00545f70
push 0xffffffffffffffff
push 0
push 0xfa3
lea ecx, [edi + 0x7c4]
call fcn.00529e10
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
push dword [edi + 0x7b0]
call esi
push 0
push 0
push dword [edi + 0x7c0]
call esi
push 0
push 0
push dword [edi + 0x7d4]
call esi
push 0
push 0
push 0x870
lea ecx, [edi + 0x7c4]
call fcn.00529e10
mov esi, dword [ebp - 0x8c]
test esi, esi
je 0x551a2f
mov ecx, dword [ebp - 0x84]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x551a25
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x551a25
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0059e222
add esp, 8
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x551a44
cmp eax, 3
je 0x551a44
push ebx
call fcn.0059e230
add esp, 4
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.0059df64
mov esp, ebp
pop ebp
ret 4