Function at 0x548180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e49cd
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x65eb68]
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, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], ebx
test ebx, ebx
jne 0x5481c0
lea eax, [ebx + 0xd]
jmp 0x5483bc
push 0x5ef1e8
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
mov esi, 4
call fcn.005a954f
mov eax, dword [ebp - 0x48]
add esp, 0xc
test eax, eax
je 0x5483ba
push eax
push 1
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.005ae0a8
mov ax, word [ebp - 0x14]
add esp, 0x10
cmp al, 0xff
jne 0x548394
cmp ah, 0xfe
jne 0x548394
push 2
push 0
push dword [ebp - 0x48]
call fcn.005ae4be
push dword [ebp - 0x48]
call fcn.005aeb11
push 0
push 2
push dword [ebp - 0x48]
lea edi, [eax - 2]
call fcn.005ae4be
push edi
call fcn.005649e3
push dword [ebp - 0x48]
mov esi, eax
push 1
push edi
push esi
call fcn.005ae0a8
xor eax, eax
mov dword [ebp - 0x44], 0
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
mov eax, edi
mov dword [ebp - 0x34], 0
cdq
add esp, 0x30
sub eax, edx
mov dword [ebp - 0x30], 7
sar eax, 1
push eax
push esi
call fcn.004049aa
push esi
mov dword [ebp - 4], 0
call fcn.005649de
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call fcn.00474960
add esp, 0xc
lea ecx, [ebp - 0x64]
push str.UTF_16
call fcn.0041083c
push 0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0045a7f0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.00404cc1
cmp esi, 0xffffffff
je 0x54836b
push str.utf_8
lea ecx, [ebp - 0x7c]
call fcn.0041083c
mov edi, eax
push str.UTF_16
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0041083c
mov ebx, eax
cmp dword [ebx + 0x10], 0
mov byte [ebp - 4], 4
je 0x548354
xor esi, esi
nop dword [eax + eax]
push esi
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.0045a7f0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x548354
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x54833f
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x2c]
push eax
push dword [ebx + 0x10]
push esi
call fcn.00549e50
add esi, dword [edi + 0x10]
jmp 0x548320
lea ecx, [ebp - 0x64]
call fcn.00404cc1
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00404cc1
mov ebx, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.0046c3e0
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00404cc1
lea ecx, [ebp - 0x44]
call fcn.00404866
jmp 0x5483af
push 0
push 0
push dword [ebp - 0x48]
call fcn.005ae4be
add esp, 0xc
mov ecx, ebx
push dword [ebp - 0x48]
call fcn.0046bf10
mov esi, eax
push dword [ebp - 0x48]
call fcn.005a96c6
add esp, 4
mov eax, esi
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.00599f9c
mov esp, ebp
pop ebp
ret