Function at 0x4a3e34
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [esp], ebx
call fcn.004a36e8
test al, al
jne 0x4a3e64
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x4a4090
mov edi, dword [ebx + 0x70]
test edi, edi
je 0x4a4040
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x78]
mov dword [esp], eax
call fcn.0042ef1c
mov dword [ebx + 0x3c], eax
mov edx, dword [ebx + 0x70]
add edx, dword [ebx + 0x6c]
cmp eax, edx
jb 0x4a40df
sub eax, edx
mov dword [ebx + 0x38], eax
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x4a4133
mov eax, dword [ebx + 0x6c]
add eax, dword [ebx + 0x70]
add eax, 0x200
mov dword [ebx + 0x5c], eax
mov dword [esp], eax
call fcn.00538984
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x4a4109
mov dword [esp + 4], 0x56acbe
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
je 0x4a4034
mov dword [esp], eax
call sub.msvcrt.dll_rewind
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x3c]
sub eax, 0x200
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x200
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x200
jne 0x4a41f3
mov dword [esp], esi
call sub.msvcrt.dll_rewind
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x38]
sub eax, 0x200
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x1c]
add eax, 0x200
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [ebx + 0x38]
sub edx, 0x200
cmp eax, edx
jne 0x4a41c1
mov dword [esp], esi
call sub.msvcrt.dll_rewind
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x3c]
sub eax, 0x200
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x200
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x200
jne 0x4a418f
mov dword [esp], esi
call sub.msvcrt.dll_rewind
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x6c]
sub eax, dword [ebx + 0x70]
sub eax, 0x200
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x70]
add eax, dword [ebx + 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x2c]
add eax, 0x200
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [ebx + 0x70]
add edx, dword [ebx + 0x6c]
cmp eax, edx
jne 0x4a415d
xor ebx, ebx
test esi, esi
je 0x4a4024
mov dword [esp], esi
call sub.msvcrt.dll_fclose
test ebx, ebx
sete al
add esp, 0x5c
pop ebx
pop esi
pop edi
leave
ret
mov al, 1
add esp, 0x5c
pop ebx
pop esi
pop edi
leave
ret
lea eax, [ebp - 0x1a]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Unable_to_determine_chaabi_fw_size__setting_to_72KB__
lea edi, [ebp - 0x28]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x800
mov eax, dword [ebx + 0x78]
mov dword [esp], eax
call fcn.0042ddbc
mov eax, dword [ebp - 0x28]
lea edi, [eax - 0xc]
cmp edi, 0x55a154
jne 0x4a4225
mov dword [ebx + 0x70], 0x12000
jmp 0x4a3e64
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Unable_to_determine_chaabi_token_size__setting_to_12KB__
lea edi, [ebp - 0x24]
mov dword [esp], edi
call fcn.00509af0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x800
mov eax, dword [ebx + 0x78]
mov dword [esp], eax
call fcn.0042ddbc
mov eax, dword [ebp - 0x24]
lea edi, [eax - 0xc]
cmp edi, 0x55a154
jne 0x4a4257
mov dword [ebx + 0x6c], 0x4000
jmp 0x4a3e59
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
cmp dword [0x554500], 0
jne 0x4a42f3
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x4a4083
lea eax, [ebp - 0x1f]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x4a4083
cmp dword [0x554500], 0
jne 0x4a430b
mov eax, dword [edi + 8]
lea edx, [eax - 1]
mov dword [edi + 8], edx
test eax, eax
jg 0x4a40d3
lea eax, [ebp - 0x1e]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.005084ec
jmp 0x4a40d3
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4a423b
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4a426d