Function at 0x4a9498
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, esi
call fcn.004a333e
mov dword [ebp - 0x20], eax
mov eax, esi
call fcn.004a333e
mov edi, dword [ebp + 8]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 0x18]
movzx edx, byte [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x10], edx
call fcn.0049daa9
mov dword [ebp - 0xc], eax
cmp edx, 5
je 0x4a94fa
cmp edx, 0xa
je 0x4a94fa
mov eax, edi
call fcn.0049daa9
mov dword [ebp - 4], eax
jmp 0x4a951e
push dword [ebp + 0x14]
mov eax, dword [edi + 0x44]
push dword [ebp - 0xc]
lea ecx, [eax + 1]
push eax
mov dword [ebp - 0x18], eax
mov dword [edi + 0x44], ecx
push 0x2a
pop eax
mov ecx, esi
call fcn.004a3296
add esp, 0xc
and dword [ebp - 4], 0
push dword [ebp - 0x20]
mov ecx, esi
push dword [ebp - 0x14]
push 0x40
pop eax
call fcn.004a332b
push dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov edi, esi
call fcn.004a6101
mov eax, dword [ebx]
mov edi, dword [ebp - 0xc]
push edi
inc eax
push eax
push dword [ebp - 0x14]
mov ecx, esi
push 0x1c
pop eax
call fcn.004a3296
mov eax, dword [ebp - 0x10]
add esp, 0x18
cmp eax, 6
je 0x4a9651
cmp eax, 7
je 0x4a9613
jle 0x4a95a5
cmp eax, 9
jg 0x4a95a5
push dword [ebp - 4]
mov ecx, esi
push dword [ebp - 8]
push 0x36
pop eax
call fcn.004a332b
push dword [ebp - 4]
mov ecx, esi
push edi
push dword [ebp - 8]
push 0x37
pop eax
call fcn.004a3296
add esp, 0x14
mov dl, 8
mov ecx, esi
call fcn.0049cac8
jmp 0x4a9660
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
jle 0x4a95db
mov edi, dword [ebp + 0x18]
mov eax, dword [edi + 8]
add eax, ebx
push eax
push ebx
push dword [ebp - 0x18]
mov ecx, esi
push 0x1c
pop eax
call fcn.004a3296
add esp, 0xc
test ebx, ebx
jne 0x4a95d3
mov dl, 0x20
mov ecx, esi
call fcn.0049cac8
inc ebx
cmp ebx, dword [ebp + 0x14]
jl 0x4a95ac
jmp 0x4a95de
mov edi, dword [ebp + 0x18]
cmp dword [ebp - 0x10], 5
mov ecx, esi
jne 0x4a9606
push dword [ebp + 0x14]
push dword [edi + 8]
push 0x10
pop eax
call fcn.004a332b
mov esi, dword [edi + 8]
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
call fcn.0049da42
jmp 0x4a964c
push dword [edi + 4]
push 4
pop eax
call fcn.004a331a
jmp 0x4a965f
mov eax, dword [ebp + 0xc]
push 1
add eax, 5
push eax
push dword [ebp - 4]
push 1
push edi
push esi
push 0x1e
pop eax
call fcn.004a7b0b
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov esi, edi
call fcn.0049da42
push dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
push dword [ebp - 8]
push 0x46
pop eax
call fcn.004a332b
add esp, 0x20
mov esi, dword [ebp + 0x10]
jmp 0x4a9660
push dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
call fcn.004a46a5
pop ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.0049dac4
mov edx, dword [ebp - 4]
call fcn.0049dac4
mov edx, dword [ebp - 0x1c]
mov ecx, esi
call fcn.0049c9ad
push dword [ebp - 0x24]
mov ecx, esi
push dword [ebp - 0x14]
push 0x43
pop eax
call fcn.004a332b
mov edx, dword [ebp - 0x20]
pop ecx
pop ecx
mov ecx, esi
call fcn.0049c9ad
cmp dword [ebp - 0x10], 5
je 0x4a96a5
cmp dword [ebp - 0x10], 0xa
jne 0x4a96b6
push 0
push dword [ebp - 0x18]
mov ecx, esi
push 0x2b
pop eax
call fcn.004a332b
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret