Function at 0x54c4c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x608
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x61c]
xor ebx, ebx
mov ebp, ecx
xor esi, esi
cmp edi, ebx
mov dword [esp + 0x14], ebp
je 0x54c5b6
cmp byte [edi], bl
je 0x54c5b6
push 0x10
call fcn.00588cb9
add esp, 4
cmp eax, ebx
je 0x54c508
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov esi, eax
jmp 0x54c50a
xor esi, esi
push 0x2ff
lea eax, [esp + 0x1d]
push ebx
push eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x24], bl
call fcn.0058ac30
push 0x2ff
lea ecx, [esp + 0x329]
push ebx
push ecx
mov byte [esp + 0x330], bl
call fcn.0058ac30
add esp, 0x18
push 0x2ff
push edi
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.00533e10
lea eax, [esp + 0x18]
push eax
call fcn.0058b0cc
lea ecx, [esp + 0x1c]
push 0x5bc870
push ecx
call fcn.0058b491
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x54c644
push 2
push ebx
push edi
call fcn.0058aafd
push edi
call fcn.0058d58d
push ebx
push ebx
push edi
mov dword [esi + 8], eax
call fcn.0058aafd
mov edx, dword [esi + 8]
push edx
call fcn.00587be5
mov ecx, dword [esi + 8]
push edi
push ecx
push 1
push eax
mov dword [esi], eax
call fcn.0058ba27
push edi
call fcn.0058b205
add esp, 0x34
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x620]
cmp edi, ebx
je 0x54c8b5
push 0x64
push edi
call fcn.0058b4c0
add esp, 8
test eax, eax
je 0x54c8b5
mov ebx, dword [esp + 0x14]
push esi
mov ecx, ebx
call fcn.0055a650
test al, al
jne 0x54c8b1
push 0x73
push edi
call fcn.0058b4c0
add esp, 8
test eax, eax
je 0x54c8b5
mov ecx, ebx
call fcn.0055a4c0
test al, al
jne 0x54c8b5
push esi
mov ecx, ebx
call fcn.0054b8e0
mov eax, dword [esp + 0x61c]
push eax
push str.File_version_not_allowed_for_file__s
push 0xffffffffffffffff
push ebx
call fcn.00533f30
add esp, 0x10
mov ecx, ebx
call fcn.00533f90
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x608
ret 8
cmp byte [0x673400], bl
je 0x54c706
mov eax, dword [0xa4813c]
cmp eax, ebx
mov dword [0xa48144], eax
je 0x54c706
mov ebp, dword [eax]
cmp ebp, ebx
je 0x54c706
lea esp, [esp]
lea edx, [esp + 0x18]
push edx
lea eax, [ebp + 4]
push eax
lea ecx, [esp + 0x320]
push 0x5bd104
push ecx
call fcn.00589571
lea edx, [esp + 0x328]
push 0x5bc870
push edx
call fcn.0058b491
mov edi, eax
add esp, 0x18
cmp edi, ebx
jne 0x54c6c3
mov eax, dword [0xa48144]
cmp eax, ebx
je 0x54c706
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [0xa48144], eax
je 0x54c706
mov ebp, dword [eax]
cmp ebp, ebx
jne 0x54c670
jmp 0x54c706
push 2
push ebx
push edi
call fcn.0058aafd
push edi
call fcn.0058d58d
push ebx
push ebx
push edi
mov dword [esi + 8], eax
call fcn.0058aafd
mov eax, dword [esi + 8]
push eax
call fcn.00587be5
mov ecx, dword [esi + 8]
push edi
push ecx
push 1
push eax
mov dword [esi], eax
call fcn.0058ba27
push edi
call fcn.0058b205
add esp, 0x34
cmp ebp, ebx
jne 0x54c5b2
mov eax, dword [0xa47c48]
cmp eax, ebx
mov dword [0xa47c50], eax
je 0x54c7b8
mov ebp, dword [eax]
cmp ebp, ebx
je 0x54c7b8
lea edx, [esp + 0x18]
push edx
lea eax, [ebp + 4]
push eax
lea ecx, [esp + 0x320]
push 0x5bd104
push ecx
call fcn.00589571
lea edx, [esp + 0x328]
push 0x5bc870
push edx
call fcn.0058b491
mov edi, eax
add esp, 0x18
cmp edi, ebx
jne 0x54c775
mov eax, dword [0xa47c50]
cmp eax, ebx
je 0x54c7b8
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [0xa47c50], eax
je 0x54c7b8
mov ebp, dword [eax]
cmp ebp, ebx
jne 0x54c722
jmp 0x54c7b8
push 2
push ebx
push edi
call fcn.0058aafd
push edi
call fcn.0058d58d
push ebx
push ebx
push edi
mov dword [esi + 8], eax
call fcn.0058aafd
mov eax, dword [esi + 8]
push eax
call fcn.00587be5
mov ecx, dword [esi + 8]
push edi
push ecx
push 1
push eax
mov dword [esi], eax
call fcn.0058ba27
push edi
call fcn.0058b205
add esp, 0x34
cmp ebp, ebx
jne 0x54c5b2
cmp esi, ebx
je 0x54c7e4
mov eax, dword [esi]
cmp eax, ebx
je 0x54c7cb
push eax
call fcn.0058881a
add esp, 4
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x54c7db
push eax
call fcn.0058881a
add esp, 4
push esi
call fcn.00588796
add esp, 4
cmp byte [0x673400], bl
je 0x54c839
mov eax, dword [0xa48000]
cmp eax, ebx
mov dword [0xa48008], eax
je 0x54c839
mov esi, dword [eax]
cmp esi, ebx
je 0x54c839
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00536240
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x54c831
mov eax, dword [0xa48008]
cmp eax, ebx
je 0x54c839
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [0xa48008], eax
je 0x54c839
mov esi, dword [eax]
cmp esi, ebx
jne 0x54c800
jmp 0x54c839
cmp esi, ebx
jne 0x54c5b2
mov eax, dword [0xa481d8]
cmp eax, ebx
mov dword [0xa481e0], eax
je 0x54c889
mov esi, dword [eax]
cmp esi, ebx
je 0x54c889
lea ecx, [ecx]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00536240
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x54c881
mov eax, dword [0xa481e0]
cmp eax, ebx
je 0x54c889
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [0xa481e0], eax
je 0x54c889
mov esi, dword [eax]
cmp esi, ebx
jne 0x54c850
jmp 0x54c889
cmp esi, ebx
jne 0x54c5b2
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push str.Could_not_locate_file__s
push 0xfffffffffffffffe
push edx
call fcn.00533f30
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x608
ret 8
add dword [esi + 8], 0xfffffff0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x608
ret 8