Function at 0x4a8100
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x70
mov eax, dword [0x577830]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x88]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x84]
push esi
push edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], eax
jne 0x4a8153
lea eax, [ebx + 4]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005120db
add esp, 0x70
ret 0x14
mov ecx, dword [eax + 4]
cmp ecx, 4
jbe 0x4a848f
mov eax, dword [eax + 8]
mov edi, eax
mov edx, eax
shr edx, 0x10
and edi, 0xff0000
or edi, edx
mov edx, eax
and edx, 0xff00
shl eax, 0x10
or edx, eax
mov eax, dword [ebp + 8]
shr edi, 8
shl edx, 8
or edi, edx
cmp edi, eax
mov dword [esp + 0x18], edi
jae 0x4a848f
cmp ecx, eax
ja 0x4a848f
add ecx, edi
cmp ecx, eax
ja 0x4a848f
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
lea esi, [esp + 0x14]
call fcn.004a9ca0
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x20]
add ecx, edi
call fcn.004a6f10
mov esi, eax
test esi, esi
jne 0x4a8565
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
cmp eax, 0x20
mov esi, 0x20
ja 0x4a81e2
mov esi, eax
mov edx, dword [esp + 0x20]
mov edi, dword [edx + 0x10]
cmp dword [edi + 0x14], 0
je 0x4a8224
lea eax, [esp + 0x5c]
push eax
mov eax, esi
call fcn.00469830
cmp eax, esi
je 0x4a825e
lea edi, [esp + 0x14]
mov esi, 2
call fcn.00401070
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005120db
add esp, 0x70
ret 0x14
mov eax, dword [edi + 4]
test eax, eax
je 0x4a8244
push eax
push 1
lea ecx, [esp + 0x64]
push esi
push ecx
call fcn.0052edba
add esp, 0x10
test eax, eax
je 0x4a8244
xor edi, edi
jmp 0x4a8254
cmp dword [edi + 4], 0
je 0x4a8251
mov edi, 2
jmp 0x4a8254
mov edi, dword [edi + 0xc]
test edi, edi
mov esi, edi
jne 0x4a8565
xor eax, eax
mov dword [esp + 0x48], eax
mov ebp, 0x553958
mov dword [esp + 0x2c], eax
cmp dword [ebp + 0x10], 0
jne 0x4a82d2
mov ecx, dword [ebp]
push 0
lea eax, [esp + 0x18]
call fcn.0044ab30
test al, al
je 0x4a836b
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 4]
mov al, 1
mov ecx, ebp
add edx, esi
call fcn.0049c420
mov ecx, dword [esp + 0x34]
mov dword [ebx], edi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov byte [esp + 0x44], al
mov edx, dword [esp + 0x44]
mov dword [ebx + 0xc], esi
lea eax, [esi + 2]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
jmp 0x4a8669
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
cmp eax, dword [edx + 4]
ja 0x4a836b
cmp eax, 4
mov edx, dword [ebp]
lea ecx, [esp + 0x5c]
jb 0x4a8304
mov edi, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4a8308
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4a82f0
test eax, eax
je 0x4a8365
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4a8357
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4a8365
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4a8357
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4a8365
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4a8357
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4a8365
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x4a8365
test esi, esi
mov eax, 1
jg 0x4a8367
or eax, 0xffffffff
jmp 0x4a8367
xor eax, eax
test eax, eax
je 0x4a83ac
mov eax, dword [esp + 0x2c]
add dword [esp + 0x48], 1
add eax, 0x1c
add ebp, 0x1c
cmp eax, 0x364
mov dword [esp + 0x2c], eax
jb 0x4a826d
lea edi, [esp + 0x14]
call fcn.00401070
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005120db
add esp, 0x70
ret 0x14
mov eax, dword [ebp + 0x10]
add eax, 0xffffffff
cmp eax, 4
ja case.default.0x4a83bb
jmp dword [eax*4 + 0x4a87ec]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 4]
add edx, esi
mov dword [esp + 0x34], eax
lea eax, [edx + 2]
mov dword [esp + 0x40], eax
mov al, 1
mov ecx, ebp
add edi, esi
call fcn.0049c420
mov ecx, dword [esp + 0x30]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x44], al
mov eax, dword [esp + 0x34]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x44]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
jmp 0x4a8669
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
lea eax, [edi + 2]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], eax
mov al, 1
mov ecx, ebp
add edx, esi
call fcn.0049c420
mov ecx, dword [esp + 0x30]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x38]
mov byte [esp + 0x44], al
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
jmp 0x4a8669
mov edx, dword [esp + 0x1c]
cmp dword [edx + 4], 4
jae 0x4a84a7
lea edi, [esp + 0x14]
call fcn.00401070
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005120db
add esp, 0x70
ret 0x14
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x24]
add ecx, dword [eax + 4]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
add ecx, esi
mov eax, edi
call fcn.004a6f10
test eax, eax
mov dword [esp + 0x18], eax
je 0x4a84ec
lea edi, [esp + 0x14]
call fcn.00401070
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005120db
add esp, 0x70
ret 0x14
mov edi, dword [edi + 0x10]
cmp dword [edi + 0x14], 0
je 0x4a852e
lea ecx, [esp + 0x2c]
push ecx
mov eax, 4
call fcn.00469830
cmp eax, 4
je 0x4a8585
lea edi, [esp + 0x14]
mov esi, 2
call fcn.00401070
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005120db
add esp, 0x70
ret 0x14
mov edx, dword [edi + 4]
push edx
push 1
lea eax, [esp + 0x34]
push 4
push eax
call fcn.0052edba
add esp, 0x10
test eax, eax
je 0x4a854b
xor edi, edi
jmp 0x4a855b
cmp dword [edi + 4], 0
je 0x4a8558
mov edi, 2
jmp 0x4a855b
mov edi, dword [edi + 0xc]
test edi, edi
mov dword [esp + 0x18], edi
je 0x4a8585
mov esi, edi
lea edi, [esp + 0x14]
call fcn.00401070
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005120db
add esp, 0x70
ret 0x14
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov edi, dword [esp + 0x2c]
cmp edi, eax
mov dword [esp + 0x18], eax
ja case.default.0x4a83bb
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x24]
lea ecx, [edi + 2]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov al, 1
mov ecx, ebp
add edx, esi
call fcn.0049c420
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x44], al
mov eax, dword [esp + 0x30]
mov dword [ebx], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x40]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], eax
jmp 0x4a8669
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 4]
add edi, eax
add edi, dword [esp + 0x18]
sub ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
mov ecx, edi
call fcn.004a6f10
mov esi, eax
test esi, esi
jne 0x4a8565
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 0x10]
lea esi, [esp + 0x2f]
call fcn.0049c2e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a8565
mov ebp, dword [ebp + 0x18]
mov eax, dword [esp + 0x2c]
mov dl, byte [esp + 0x2b]
mov ecx, dword [esp + 0x4c]
mov dword [ebx], ebp
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
lea esi, [eax + 2]
mov byte [esp + 0x44], dl
mov edx, dword [esp + 0x44]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], edx
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
cmp eax, 0x1f
jb 0x4a8695
lea edi, [esp + 0x14]
call fcn.00401070
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005120db
add esp, 0x70
ret 0x14
mov ecx, dword [esp + 0x1c]
lea ebx, [eax*8]
sub ebx, eax
mov eax, dword [ecx]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
lea ebx, [ebx*4 + 0x553958]
mov ebp, 5
cmp dword [ebx + 0x10], ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
je 0x4a86d8
mov eax, dword [ebx + 8]
cmp eax, 1
jae 0x4a86d4
mov eax, 1
mov dword [esp + 0x54], eax
cmp eax, 4
ja 0x4a875c
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 4]
mov edi, dword [esp + 0x20]
add ecx, esi
mov eax, edi
call fcn.004a6f10
mov esi, eax
test esi, esi
jne 0x4a8565
mov edi, dword [edi + 0x10]
cmp dword [edi + 0x14], 0
mov eax, dword [esp + 0x54]
mov esi, eax
je 0x4a8722
lea ecx, [esp + 0x58]
push ecx
call fcn.00469830
cmp eax, esi
je 0x4a875c
mov esi, 2
jmp 0x4a8565
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4a8742
push ecx
push 1
push eax
lea edx, [esp + 0x64]
push edx
call fcn.0052edba
add esp, 0x10
test eax, eax
je 0x4a8742
xor edi, edi
jmp 0x4a8752
cmp dword [edi + 4], 0
je 0x4a874f
mov edi, 2
jmp 0x4a8752
mov edi, dword [edi + 0xc]
test edi, edi
mov esi, edi
jne 0x4a8565
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x14]
mov eax, dword [ebx + 0xc]
push 0x46
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x38], eax
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.004a9de0
mov esi, eax
test esi, esi
lea edi, [esp + 0x14]
jne 0x4a8569
xor edx, edx
cmp dword [ebx + 0x10], ebp
setne dl
sub edx, 1
and edx, 0xf4240
mov esi, edx
call fcn.00401070
mov ecx, dword [esp + 0x7c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005120db
add esp, 0x70
ret 0x14