Function at 0x4a99d2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0xc]
mov eax, ebx
mov dword [ebp - 4], ebx
call fcn.0049ca71
mov dword [ebp - 0x10], eax
mov eax, ebx
call fcn.004a333e
mov dword [ebp - 0xc], eax
test edi, edi
je 0x4a9a67
push edi
push 0x1b
pop eax
mov ecx, ebx
call fcn.004a331a
push dword [ebp + 0x20]
mov esi, dword [ebp + 0x10]
push dword [ebp + 0x1c]
mov dword [ebp - 8], eax
push dword [esi + 0xc]
lea eax, [edi + 1]
push eax
push dword [esi + 8]
push ebx
push 0x18
pop eax
call fcn.004a7b0b
add eax, 2
push eax
push dword [ebp - 0xc]
mov ecx, ebx
push eax
push 0x19
pop eax
call fcn.004a3296
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.0049cada
push dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
lea ecx, [edi + 1]
call fcn.004a46e5
push edi
push 1
push 7
pop eax
mov ecx, ebx
call fcn.004a332b
add esp, 0x34
jmp 0x4a9a6a
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp byte [eax + 0x1e], 0
je 0x4a9a7c
xor eax, eax
jmp 0x4a9c44
push dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov edi, ebx
call fcn.004a6101
mov edi, dword [ebp + 0x14]
mov al, byte [edi]
pop ecx
cmp al, 6
je 0x4a9bf7
cmp al, 7
je 0x4a9b8d
jbe 0x4a9b6b
cmp al, 9
jbe 0x4a9afb
cmp al, 0xa
jne 0x4a9b6b
cmp dword [edi + 8], 0
jne 0x4a9ad3
mov esi, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0049daf8
mov esi, dword [ebp + 0x10]
mov ecx, edi
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
push dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edi, dword [esi + 8]
mov eax, dword [ebp + 8]
call fcn.004a46a5
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
mov ecx, dword [ebp - 4]
push 4
pop eax
call fcn.004a331a
pop ecx
jmp 0x4a9c08
mov eax, dword [ebp + 8]
call fcn.0049daa9
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
call fcn.0049daa9
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [esi + 0xc]
mov ecx, ebx
push dword [esi + 8]
push 0x1e
pop eax
call fcn.004a3296
push dword [ebp - 4]
mov ecx, ebx
push dword [edi + 4]
push 0x36
pop eax
call fcn.004a332b
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push dword [edi + 4]
push 0x37
pop eax
call fcn.004a3296
add esp, 0x20
mov dl, 8
mov ecx, ebx
call fcn.0049cac8
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.0049dac4
mov edx, dword [ebp - 8]
call fcn.0049dac4
jmp 0x4a9c0c
push dword [esi + 0xc]
mov ecx, ebx
push dword [esi + 8]
push 0x10
pop eax
call fcn.004a332b
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
mov esi, dword [esi + 8]
call fcn.0049da42
jmp 0x4a9c0c
mov eax, dword [ebp + 0xc]
mov bl, byte [edi + 1]
lea ecx, [eax + 5]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
call fcn.004a410a
mov edx, dword [ebp - 8]
mov byte [edx], al
mov eax, dword [ebp + 8]
call fcn.0049daa9
push 1
push edx
mov edi, eax
push edi
push 1
push dword [esi + 8]
push dword [ebp - 4]
push 0x1e
pop eax
call fcn.004a7b0b
mov esi, dword [esi + 8]
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
call fcn.0049da42
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push edi
push dword [eax + 4]
push 0x46
pop eax
call fcn.004a332b
mov eax, dword [ebp + 8]
add esp, 0x20
mov edx, edi
call fcn.0049dac4
jmp 0x4a9c09
push dword [edi + 4]
mov edi, dword [esi + 8]
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
call fcn.004a46a5
pop ecx
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x4a9c29
push 0xffffffffffffffff
push dword [ebp + 0x24]
mov ecx, ebx
push eax
push 0x73
pop eax
call fcn.004a3296
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0049c9ad
push dword [ebp + 0x18]
mov ecx, ebx
push 3
pop eax
call fcn.004a331a
mov eax, dword [ebp - 0x10]
pop ecx
pop edi
pop esi
pop ebx
leave
ret