Function at 0x48d420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x534014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x20
push 0x408894
push edi
mov dword [ebp - 0x54], edi
call fcn.00459b90
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x48d4c0
mov word [esi + 4], ax
mov dword [esi], 0x12
cmp byte [esi + 0x81c], al
jne 0x48d491
mov eax, dword [esi + 0x808]
mov byte [esi + 0x81c], 1
test eax, eax
jne 0x48d47c
mov dword [esi + 0x820], eax
jmp 0x48d497
push 1
push dword [esi + 0x804]
call eax
add esp, 8
mov dword [esi + 0x820], eax
jmp 0x48d497
mov eax, dword [esi + 0x820]
test eax, eax
je 0x48d4ab
push 0
push 0x12
push edi
push dword [esi + 0x804]
call eax
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426f36
mov esp, ebp
pop ebp
ret 4
push ebx
push 1
lea eax, [ebp - 0x50]
push 0x30
push eax
call fcn.0052507e
add esp, 0x10
cmp eax, 1
je 0x48d52f
xor eax, eax
mov dword [esi], 0xb
mov word [esi + 4], ax
cmp byte [esi + 0x81c], al
jne 0x48d518
mov eax, dword [esi + 0x808]
mov byte [esi + 0x81c], 1
test eax, eax
jne 0x48d503
mov dword [esi + 0x820], eax
jmp 0x48d51e
push 1
push dword [esi + 0x804]
call eax
add esp, 8
mov dword [esi + 0x820], eax
jmp 0x48d51e
mov eax, dword [esi + 0x820]
test eax, eax
je 0x48d68d
push 0
push 0xb
jmp 0x48d681
mov eax, 0x4944
cmp word [ebp - 0x50], ax
jne 0x48d4d6
mov eax, dword [ebp - 0x38]
push 1
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x34]
lea eax, [eax + ecx*8]
push eax
push ebx
call fcn.00525413
add esp, 0xc
test eax, eax
jne 0x48d4d6
push ebx
call fcn.00525a66
mov edi, dword [ebp - 0x30]
add esp, 4
mov dword [ebp - 0x58], eax
mov eax, 0x24924925
mul edi
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 4
test edi, edi
je 0x48d5d5
lea esp, [esp]
push ebx
push 1
lea eax, [ebp - 0x20]
dec edi
push 0x1c
push eax
call fcn.0052507e
add esp, 0x10
cmp eax, 1
jne 0x48d62e
cmp byte [esi + 0xc94], 0
jne 0x48d5d1
cmp dword [ebp - 0x14], 2
jne 0x48d5d1
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc98], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xca0], eax
mov ax, word [ebp - 0x16]
mov dword [esi + 0xc9c], 0
mov word [esi + 0xca4], ax
test edi, edi
jne 0x48d580
mov eax, dword [ebp - 0x48]
cmp eax, dword [esi + 0xc80]
je 0x48d6d0
mov ecx, dword [esi + 0xc84]
test ecx, ecx
je 0x48d5f6
cmp eax, ecx
je 0x48d6d0
xor eax, eax
mov dword [esi], 0x14
mov word [esi + 4], ax
cmp byte [esi + 0x81c], al
jne 0x48d6c0
mov eax, dword [esi + 0x808]
mov byte [esi + 0x81c], 1
test eax, eax
jne 0x48d6ab
mov dword [esi + 0x820], eax
jmp 0x48d6c6
xor eax, eax
mov dword [esi], 0xb
mov word [esi + 4], ax
cmp byte [esi + 0x81c], al
jne 0x48d670
mov eax, dword [esi + 0x808]
mov byte [esi + 0x81c], 1
test eax, eax
jne 0x48d65b
mov dword [esi + 0x820], eax
jmp 0x48d676
push 1
push dword [esi + 0x804]
call eax
add esp, 8
mov dword [esi + 0x820], eax
jmp 0x48d676
mov eax, dword [esi + 0x820]
test eax, eax
je 0x48d68d
push 0
push 0xb
mov edi, dword [ebp - 0x54]
push edi
push dword [esi + 0x804]
call eax
add esp, 0x10
push ebx
call fcn.00447aaf
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426f36
mov esp, ebp
pop ebp
ret 4
push 1
push dword [esi + 0x804]
call eax
add esp, 8
mov dword [esi + 0x820], eax
jmp 0x48d6c6
mov eax, dword [esi + 0x820]
test eax, eax
je 0x48d68d
push 0
push 0x14
jmp 0x48d67e
mov edi, dword [ebp - 0x54]
push edi
call fcn.00524e39
mov dword [esi + 0xc90], eax
add esp, 4
xor eax, eax
mov dword [esi + 0xc8c], ebx
mov word [esi + 4], ax
mov dword [esi], 0
cmp byte [esi + 0x81c], al
jne 0x48d72a
mov eax, dword [esi + 0x808]
mov byte [esi + 0x81c], 1
test eax, eax
jne 0x48d715
mov dword [esi + 0x820], eax
jmp 0x48d730
push 1
push dword [esi + 0x804]
call eax
add esp, 8
mov dword [esi + 0x820], eax
jmp 0x48d730
mov eax, dword [esi + 0x820]
test eax, eax
je 0x48d744
push 0
push 0
push edi
push dword [esi + 0x804]
call eax
add esp, 0x10
push 0
push dword [ebp - 0x58]
push ebx
call fcn.00525413
add esp, 0xc
test eax, eax
jne 0x48d7dd
mov edi, dword [ebp - 0x30]
mov eax, 0x24924925
mul edi
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 4
test edi, edi
je 0x48d7dd
push ebx
push 1
lea eax, [ebp - 0x20]
dec edi
push 0x1c
push eax
call fcn.0052507e
add esp, 0x10
cmp eax, 1
jne 0x48d7dd
cmp byte [esi + 0x80c], 0
jne 0x48d7be
mov byte [esi + 0x80c], al
mov eax, dword [esi + 0x808]
test eax, eax
jne 0x48d7a9
mov dword [esi + 0x810], eax
jmp 0x48d7c4
push 0
push dword [esi + 0x804]
call eax
add esp, 8
mov dword [esi + 0x810], eax
jmp 0x48d7c4
mov eax, dword [esi + 0x810]
test eax, eax
je 0x48d7d9
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [esi + 0x804]
call eax
add esp, 0xc
test edi, edi
jne 0x48d771
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426f36
mov esp, ebp
pop ebp
ret 4