Function at 0x4a9710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebx]
test eax, eax
jne 0x4a972a
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
lea ecx, [ecx + ecx*2]
mov dword [ebp - 0x40], 0xa
add ecx, 3
mov dword [ebp - 0xc], 0xffffffff
and ecx, 0xfffffffc
mov dword [ebp - 0x18], ecx
imul ecx, eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
push esi
push edi
add eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
nop word [eax + eax]
mov ecx, dword [ebx]
lea edx, [ebp - 0x38]
call fcn.004ac360
test eax, eax
je 0x4a9796
mov ecx, dword [ebp - 0x38]
mov eax, ecx
sub eax, 2
je 0x4a98e8
sub eax, 1
je 0x4a979f
cmp ecx, 4
jne 0x4a9770
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx]
mov eax, dword [edi + 0x48]
test byte [eax], 8
je 0x4a994e
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4a97c2
push 1
lea eax, [ebp - 1]
push eax
push edi
call ecx
add esp, 0xc
jmp 0x4a97d5
push dword [eax + 0x38]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.004eeb09
add esp, 0x10
cmp eax, 1
jne 0x4a993b
movzx esi, byte [ebp - 1]
lea edx, [ebp - 0x14]
mov ecx, edi
call fcn.004ac7a0
test eax, eax
je 0x4a9955
xor edi, edi
sub esi, 0xf9
je 0x4a986a
sub esi, 6
jne 0x4a98a3
movzx esi, byte [0x57e080]
mov edx, 0x57e080
mov ecx, dword [ebp - 0x14]
sub esi, 4
jb 0x4a9831
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4a9836
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4a9820
cmp esi, 0xfffffffc
je 0x4a9863
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4a98a3
cmp esi, 0xfffffffd
je 0x4a9863
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4a98a3
cmp esi, 0xfffffffe
je 0x4a9863
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4a98a3
cmp esi, 0xffffffff
je 0x4a9863
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4a98a3
mov edi, 1
jmp 0x4a98a3
mov ecx, dword [ebp - 0x14]
movzx eax, byte [ecx + 3]
movzx edx, byte [ecx + 1]
shl ax, 8
movzx esi, ax
movzx eax, byte [ecx + 2]
or esi, eax
mov dword [ebp - 0x40], esi
test dl, 1
je 0x4a9893
movzx eax, byte [ecx + 4]
mov dword [ebp - 0xc], eax
jmp 0x4a989a
mov dword [ebp - 0xc], 0xffffffff
shr edx, 2
and edx, 7
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebx]
lea edx, [ebp - 0x14]
call fcn.004ac7a0
test eax, eax
je 0x4a992f
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x4a9770
test edi, edi
je 0x4a98a3
cmp byte [edx], 3
jne 0x4a98a3
mov al, byte [edx + 1]
and al, 7
cmp al, 1
jne 0x4a98a3
movzx eax, byte [edx + 3]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 2]
or ecx, eax
dec ecx
mov dword [ebx + 0x864], ecx
jmp 0x4a98a3
mov ecx, dword [ebx]
call fcn.004ac420
test eax, eax
je 0x4a9770
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
inc dword [ebx + 0x860]
cmp dword [eax + 0x30], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], ecx
jne 0x4a9961
lea esi, [ebx + 8]
mov ecx, 0x10a
lea edi, [ebx + 0x430]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x2c], esi
jmp 0x4a9990
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], 0x66
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], 0x6f
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
lea ecx, [ebx + 0x430]
call fcn.004a93f0
mov ecx, dword [ebx]
lea edx, [ebx + 0x430]
add esp, 4
mov ecx, dword [ecx + 0x30]
call fcn.004a9430
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 8]
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call fcn.004e4c80
mov eax, dword [ebx]
add esp, 0xc
cmp byte [eax + 0x2c], 0
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], edx
je 0x4a9a7e
xor esi, esi
mov dword [ebp - 0x34], esi
nop
mov ebx, dword [esi + 0x552690]
mov dword [ebp - 0x30], ebx
cmp ebx, edx
jge 0x4a9a67
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x10]
add esi, dword [ebp - 8]
push ecx
mov ecx, dword [eax]
mov edx, esi
call fcn.004ac720
add esp, 4
test eax, eax
je 0x4a9bd0
mov ecx, dword [ebp - 0x14]
lea eax, [edi + edi*2]
add ecx, ebx
imul ecx, dword [ebp - 0x18]
add eax, ecx
cmp eax, dword [ebp - 8]
jae 0x4a9bd0
mov ecx, dword [ebp - 0x1c]
mov edi, ecx
add eax, dword [ebp - 0x24]
test ecx, ecx
je 0x4a9a4d
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
mov cl, byte [esi]
lea esi, [esi + 1]
movzx ecx, cl
cmp ecx, edx
je 0x4a9a3f
lea edx, [ebx + ecx*2]
add edx, ecx
movzx ecx, byte [edx + 2]
mov byte [eax], cl
movzx ecx, byte [edx + 1]
mov byte [eax + 1], cl
movzx ecx, byte [edx]
mov edx, dword [ebp - 0xc]
mov byte [eax + 2], cl
add eax, 3
sub edi, 1
jne 0x4a9a18
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x20]
add ebx, dword [esi + 0x5526a0]
mov dword [ebp - 0x30], ebx
cmp ebx, edx
jl 0x4a99d1
add esi, 4
mov dword [ebp - 0x34], esi
cmp esi, 0x10
jge 0x4a9b2e
mov edi, dword [ebp - 0x20]
jmp 0x4a99c0
xor ebx, ebx
mov dword [ebp - 0x30], ebx
test edx, edx
jle 0x4a9b31
mov esi, dword [ebp - 0x14]
imul esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + edx]
mov ecx, dword [eax]
call fcn.004ac720
add esp, 4
test eax, eax
je 0x4a9bd0
mov edx, dword [ebp - 8]
lea eax, [esi + edi*2]
add eax, edi
cmp eax, edx
jae 0x4a9bd0
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add esi, edx
mov edx, dword [ebp - 0x24]
mov edi, ecx
mov ebx, dword [ebp - 0x30]
add edx, eax
test ecx, ecx
je 0x4a9b15
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov al, byte [esi]
lea esi, [esi + 1]
movzx eax, al
cmp eax, ecx
je 0x4a9b07
lea ecx, [ebx + eax*2]
add ecx, eax
movzx eax, byte [ecx + 2]
mov byte [edx], al
movzx eax, byte [ecx + 1]
mov byte [edx + 1], al
movzx eax, byte [ecx]
mov ecx, dword [ebp - 0xc]
mov byte [edx + 2], al
add edx, 3
sub edi, 1
jne 0x4a9ae0
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
inc ebx
add esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], esi
cmp ebx, dword [ebp - 0x38]
jl 0x4a9a95
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x3c]
cmp eax, 2
jne 0x4a9bda
cmp dword [ebp - 0xc], 0xffffffff
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], eax
jne 0x4a9b62
mov ebx, dword [ebx + 0x85c]
jmp 0x4a9b68
mov ebx, dword [ebx + 0x858]
xor edi, edi
mov dword [ebp - 0x30], ebx
test eax, eax
jle 0x4a9bee
imul ecx, dword [ebp - 0x18]
lea esi, [esi + esi*2]
mov eax, dword [ebp - 0x10]
add esi, ecx
add eax, esi
mov dword [ebp - 0x3c], eax
cmp esi, dword [ebp - 8]
jae 0x4a9bd0
mov ecx, edx
test edx, edx
je 0x4a9bb9
mov edx, ebx
shr edx, 0x10
mov dword [ebp - 0x38], edx
shr bx, 8
nop dword [eax]
mov byte [eax], dl
lea eax, [eax + 3]
mov edx, dword [ebp - 0x30]
mov byte [eax - 1], dl
mov edx, dword [ebp - 0x38]
mov byte [eax - 2], bl
sub ecx, 1
jne 0x4a9ba0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
inc edi
add eax, dword [ebp - 0x18]
add esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
cmp edi, dword [ebp - 0x2c]
jl 0x4a9b82
jmp 0x4a9bee
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 3
je 0x4a9bee
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.004e4c80
add esp, 0xc
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x4a9c0b
push dword [esi + 0xc]
call fcn.004e4a56
push esi
call fcn.004e4a56
add esp, 8
mov eax, dword [ebx]
mov ecx, 0xa
pop edi
pop esi
pop ebx
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0x40]
test eax, eax
cmove eax, ecx
lea eax, [eax + eax*4]
add eax, eax
mov esp, ebp
pop ebp
ret