Function at 0x54d3c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a994f
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5f300c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 0xbb0]
lea esi, [edi + 0xbb0]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], esi
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
shl ecx, 5
cmp dword [ecx + eax + 0x84], 0
je 0x54d470
cmp byte [ebp + 0x10], 0
jne 0x54d91f
cmp dword [edi + 0x26c], 8
lea eax, [edi + 0x258]
jb 0x54d430
mov eax, dword [eax]
push 0
push 0
push eax
push 0x5d3884
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.0055a050
push 0x30
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov edx, dword [edi]
mov ecx, edi
push eax
lea eax, [edi + 0x7ac]
push eax
call dword [edx + 0xbc]
lea ecx, [ebp - 0x2c]
call fcn.0040ab30
jmp 0x54d91f
cmp dword [edi + 0x268], 0
lea eax, [edi + 0x258]
jbe 0x54d49b
cmp dword [eax + 0x14], 8
jb 0x54d487
mov eax, dword [eax]
push 0x5c0b9c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov dword [ebp - 0x74], eax
jmp 0x54d4a2
mov dword [ebp - 0x74], 0
lea eax, [edi + 0xb0c]
push 0
push str.utf8.auto.check
mov ecx, eax
mov dword [ebp - 0x70], eax
call fcn.00528190
cmp dword [ebp - 0x74], 0
mov ebx, eax
mov dword [ebp - 0x6c], ebx
jne 0x54d589
cmp ebx, 2
je 0x54d4d2
cmp ebx, 4
jne 0x54d4e5
mov eax, dword [esi]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
shl ecx, 5
mov dword [ecx + eax + 0x34], 4
cmp ebx, 1
je 0x54d4ef
cmp ebx, 3
jne 0x54d502
mov eax, dword [esi]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
shl ecx, 5
mov dword [ecx + eax + 0x34], 3
cmp byte [ebp + 0x10], 0
jne 0x54d55d
cmp dword [edi + 0x26c], 8
lea eax, [edi + 0x258]
jb 0x54d519
mov eax, dword [eax]
push 0
push 0
push eax
push 0x5d38f4
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.0055a050
mov dword [ebp - 4], 1
mov ecx, edi
mov eax, dword [edi]
push 0x30
mov edx, dword [eax + 0xbc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [edi + 0x7ac]
push eax
call edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ab30
lea ecx, [edi + 0x7c4]
call fcn.0052a420
test al, al
jne 0x54d91f
push 0
push 1
push 0x7dc
lea ecx, [edi + 0x7c4]
call fcn.00529e10
jmp 0x54d91f
mov eax, dword [esi]
lea esi, [eax + eax*4]
mov eax, dword [ebp - 0x78]
shl esi, 5
add esi, dword [eax + 0x14]
mov ecx, esi
call fcn.00519300
mov ecx, edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
mov byte [esi + 0x2e], 0
lea esi, [edi + 0x7c4]
mov ecx, esi
call fcn.0052a960
mov ecx, esi
call fcn.0052a180
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x14]
shl ecx, 5
cmp byte [ebp + 0x14], 0
mov dword [ecx + eax + 0x30], 1
mov ecx, esi
je 0x54d77a
push 0xeeeeee
push 0x20
push 0x804
call fcn.00529e10
push 0
push 1
push 0x87b
mov ecx, esi
call fcn.00529e10
mov ecx, dword [ebp - 0x70]
push 0
push 0
push str.file.size.large
mov dword [ebp - 4], 2
mov dword [ebp - 0x6c], 0
call fcn.00528340
mov ecx, eax
or ecx, edx
je 0x54d645
cmp dword [ebp + 0xc], edx
jl 0x54d645
jg 0x54d63e
cmp dword [ebp + 8], eax
jbe 0x54d645
mov dword [ebp - 0x6c], 0x100
mov ecx, dword [ebp - 0x70]
push 0
push 0
push str.file.size.no.styles
call fcn.00528340
mov ecx, eax
or ecx, edx
je 0x54d670
cmp dword [ebp + 0xc], edx
jl 0x54d670
jg 0x54d668
cmp dword [ebp + 8], eax
jbe 0x54d670
mov eax, dword [ebp - 0x6c]
or eax, 1
jmp 0x54d673
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
add eax, 0x3e8
push eax
push 0xa48
call fcn.00529e10
push 0x68
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0059df75
mov esi, eax
add esp, 4
mov dword [ebp - 0x7c], esi
push dword [ebp - 0x74]
lea eax, [edi + 0x254]
mov dword [ebp - 4], 4
push dword [ebp + 8]
lea ecx, [edi + 0x234]
neg edi
push eax
sbb edi, edi
and edi, ecx
mov ecx, esi
push edi
call fcn.0051c1a0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x58], eax
lea eax, [esi + 8]
mov dword [esi], vtable.FileLoader.0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
xchg dword [eax], ecx
mov edi, dword [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
push 0
push 0x5d3910
mov eax, dword [edi]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x14]
shl ecx, 5
mov dword [ecx + eax + 0x84], esi
mov ecx, dword [ebp - 0x70]
call fcn.00528190
mov ecx, dword [edi]
lea edx, [ecx + ecx*4]
mov ecx, dword [edi + 0x14]
shl edx, 5
mov ecx, dword [edx + ecx + 0x84]
mov dword [ecx + 0x48], eax
mov eax, dword [edi]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x14]
shl ecx, 5
mov eax, dword [eax + ecx + 0x84]
mov dword [eax + 0x4c], ebx
mov eax, dword [edi]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x14]
shl ecx, 5
push dword [ecx + eax + 0x84]
call fcn.0052e200
jmp 0x54d91f
mov eax, dword [ebp + 8]
push 0
add eax, 0x3e8
push eax
push 0x98e
call fcn.00529e10
push ecx
push 0x20000
lea ecx, [ebp - 0x20]
call fcn.0040a750
push dword [ebp - 0x74]
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
sub eax, esi
push eax
push 1
push esi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ebx, eax
push ebx
push esi
call fcn.0050e8a0
mov ecx, dword [ebp - 0x6c]
add esp, 0x18
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x54d7f7
cmp ecx, 2
je 0x54d7dc
cmp ecx, 4
jne 0x54d7f7
push ecx
mov edx, ebx
mov ecx, esi
call fcn.0055f260
mov ecx, dword [ebp - 0x6c]
add esp, 4
test eax, eax
je 0x54d7f7
mov dword [ebp - 0x70], 4
cmp ecx, 3
sete al
cmp dword [ebp - 0x70], 0
mov dl, al
jne 0x54d813
cmp ecx, 1
je 0x54d80f
cmp ecx, 3
jne 0x54d813
mov al, 1
jmp 0x54d815
xor al, al
push edx
push eax
lea ecx, [ebp - 0x68]
call fcn.0055ef20
mov byte [ebp - 4], 6
test ebx, ebx
je 0x54d880
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.0055efc0
push dword [ebp - 0x60]
lea ecx, [edi + 0x7c4]
push eax
push 0x7d1
call fcn.00529e10
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x54d827
push eax
push eax
lea ecx, [ebp - 0x68]
call fcn.0055efc0
test eax, eax
je 0x54d880
mov ebx, dword [ebp - 0x60]
lea ecx, [edi + 0x7c4]
push ebx
push eax
push 0x7d1
call fcn.00529e10
push dword [ebp - 0x74]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [edi + 0x7c4]
call fcn.0052a9c0
mov edx, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x68]
mov eax, dword [edx]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x14]
shl ecx, 5
mov dword [ecx + eax + 0x34], ebx
mov ecx, dword [edx]
mov edx, dword [edx + 0x14]
mov ebx, dword [ebp - 0x60]
lea eax, [ecx + ecx*4]
shl eax, 5
cmp dword [eax + edx + 0x34], 0
jne 0x54d8ce
lea eax, [ecx + ecx*4]
mov ecx, dword [ebp - 0x70]
shl eax, 5
mov dword [eax + edx + 0x34], ecx
push 0
mov ecx, edi
call fcn.0054dc30
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x54d8ec
cmp eax, 3
je 0x54d8ec
push ebx
call fcn.0059e230
add esp, 4
test esi, esi
je 0x54d91f
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x54d915
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x54d915
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 ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059df64
mov esp, ebp
pop ebp
ret 0x10