Function at 0x4a8ed0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x74
mov eax, dword [0x577830]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
push ebx
mov ebx, dword [esp + 0x88]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x80]
push esi
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
jne 0x4a8f1c
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, 0x74
ret 0x10
mov ecx, dword [eax + 4]
cmp ecx, 4
jbe 0x4a922f
mov edi, dword [eax + 8]
mov eax, dword [edx + 8]
cmp edi, eax
mov dword [esp + 0x18], edi
jae 0x4a922f
cmp ecx, eax
ja 0x4a922f
add ecx, edi
cmp ecx, eax
ja 0x4a922f
mov eax, dword [ebp + 0x14]
lea esi, [esp + 0x14]
call fcn.004a9ca0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
add ecx, edi
mov eax, ebp
call fcn.004a6f10
mov esi, eax
test esi, esi
jne 0x4a9305
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
cmp eax, 0x20
mov esi, 0x20
ja 0x4a8f85
mov esi, eax
mov edi, dword [ebp + 0x10]
cmp dword [edi + 0x14], 0
je 0x4a8fc3
lea edx, [esp + 0x5c]
push edx
mov eax, esi
call fcn.00469830
cmp eax, esi
je 0x4a8ffd
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, 0x74
ret 0x10
mov eax, dword [edi + 4]
test eax, eax
je 0x4a8fe3
push eax
push 1
lea eax, [esp + 0x64]
push esi
push eax
call fcn.0052edba
add esp, 0x10
test eax, eax
je 0x4a8fe3
xor edi, edi
jmp 0x4a8ff3
cmp dword [edi + 4], 0
je 0x4a8ff0
mov edi, 2
jmp 0x4a8ff3
mov edi, dword [edi + 0xc]
test edi, edi
mov esi, edi
jne 0x4a9305
xor eax, eax
mov dword [esp + 0x48], eax
mov ebp, 0x553958
mov dword [esp + 0x24], eax
cmp dword [ebp + 0x10], 0
jne 0x4a9071
mov ecx, dword [ebp]
push 0
lea eax, [esp + 0x18]
call fcn.0044ab30
test al, al
je 0x4a910b
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 4]
mov esi, dword [esp + 0x18]
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x34], ecx
xor al, al
mov ecx, ebp
add edx, esi
call fcn.0049c420
mov byte [esp + 0x44], al
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
lea eax, [esi + 2]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
jmp 0x4a9409
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx + 4]
ja 0x4a910b
cmp eax, 4
mov edx, dword [ebp]
lea ecx, [esp + 0x5c]
jb 0x4a90a4
lea ecx, [ecx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4a90a8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4a9090
test eax, eax
je 0x4a9105
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4a90f7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4a9105
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4a90f7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4a9105
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4a90f7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4a9105
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x4a9105
test esi, esi
mov eax, 1
jg 0x4a9107
or eax, 0xffffffff
jmp 0x4a9107
xor eax, eax
test eax, eax
je 0x4a914c
mov eax, dword [esp + 0x24]
add dword [esp + 0x48], 1
add eax, 0x1c
add ebp, 0x1c
cmp eax, 0x364
mov dword [esp + 0x24], eax
jb 0x4a900c
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, 0x74
ret 0x10
mov eax, dword [ebp + 0x10]
add eax, 0xffffffff
cmp eax, 4
ja case.default.0x4a915b
jmp dword [eax*4 + 0x4a958c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x20]
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
xor al, al
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 0x4a9409
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x20]
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
xor al, al
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 0x4a9409
mov edx, dword [esp + 0x1c]
cmp dword [edx + 4], 4
jae 0x4a9247
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, 0x74
ret 0x10
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x20]
add ecx, dword [eax + 4]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
add ecx, esi
mov eax, edi
call fcn.004a6f10
test eax, eax
mov dword [esp + 0x18], eax
je 0x4a928c
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, 0x74
ret 0x10
mov edi, dword [edi + 0x10]
cmp dword [edi + 0x14], 0
je 0x4a92ce
lea ecx, [esp + 0x24]
push ecx
mov eax, 4
call fcn.00469830
cmp eax, 4
je 0x4a9325
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, 0x74
ret 0x10
mov edx, dword [edi + 4]
push edx
push 1
lea eax, [esp + 0x2c]
push 4
push eax
call fcn.0052edba
add esp, 0x10
test eax, eax
je 0x4a92eb
xor edi, edi
jmp 0x4a92fb
cmp dword [edi + 4], 0
je 0x4a92f8
mov edi, 2
jmp 0x4a92fb
mov edi, dword [edi + 0xc]
test edi, edi
mov dword [esp + 0x18], edi
je 0x4a9325
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, 0x74
ret 0x10
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov edi, dword [esp + 0x24]
cmp edi, eax
mov dword [esp + 0x18], eax
ja case.default.0x4a915b
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x20]
lea ecx, [edi + 2]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], ecx
xor al, al
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 0x4a9409
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
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 + 0x2c]
mov dword [esp + 0x4c], ecx
mov ecx, edi
call fcn.004a6f10
mov esi, eax
test esi, esi
jne 0x4a9305
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
push eax
mov eax, dword [ecx + 0x10]
lea esi, [esp + 0x2f]
call fcn.0049c2e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a9305
mov ebp, dword [ebp + 0x18]
mov eax, dword [esp + 0x24]
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 0x4a9435
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, 0x74
ret 0x10
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 0x4a9478
mov eax, dword [ebx + 8]
cmp eax, 1
jae 0x4a9474
mov eax, 1
mov dword [esp + 0x54], eax
cmp eax, 4
ja 0x4a94fc
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 4]
mov edi, dword [esp + 0x2c]
add ecx, esi
mov eax, edi
call fcn.004a6f10
mov esi, eax
test esi, esi
jne 0x4a9305
mov edi, dword [edi + 0x10]
cmp dword [edi + 0x14], 0
mov eax, dword [esp + 0x54]
mov esi, eax
je 0x4a94c2
lea ecx, [esp + 0x58]
push ecx
call fcn.00469830
cmp eax, esi
je 0x4a94fc
mov esi, 2
jmp 0x4a9305
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4a94e2
push ecx
push 1
push eax
lea edx, [esp + 0x64]
push edx
call fcn.0052edba
add esp, 0x10
test eax, eax
je 0x4a94e2
xor edi, edi
jmp 0x4a94f2
cmp dword [edi + 4], 0
je 0x4a94ef
mov edi, 2
jmp 0x4a94f2
mov edi, dword [edi + 0xc]
test edi, edi
mov esi, edi
jne 0x4a9305
mov eax, dword [esp + 0x20]
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 + 0x34]
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.004aa9c0
mov esi, eax
test esi, esi
lea edi, [esp + 0x14]
jne 0x4a9309
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, 0x74
ret 0x10