Function at 0x4a69d3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
push ebx
push esi
mov esi, dword [edi + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
call fcn.0049da24
mov ebx, dword [edi + 0x18]
dec ebx
mov dword [ebp - 8], ebx
js 0x4a6b46
mov eax, ebx
imul eax, eax, 0x38
lea eax, [eax + esi + 0x20]
mov dword [ebp - 0x10], eax
mov eax, ebx
imul eax, eax, 0x50
lea esi, [eax + edi + 0x6c]
mov edx, dword [esi - 0x10]
mov ecx, dword [ebp - 4]
call fcn.0049c9ad
mov al, byte [esi - 7]
cmp al, 0x89
je 0x4a6a47
push dword [esi]
mov ecx, dword [ebp - 4]
push dword [esi - 4]
movzx eax, al
call fcn.004a332b
mov dl, byte [esi - 6]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.0049cac8
test dword [esi - 0x3c], 0xf1000
je 0x4a6ab8
cmp dword [esi + 4], 0
jle 0x4a6ab8
mov edx, dword [esi - 0x14]
mov ecx, dword [ebp - 4]
call fcn.0049c9ad
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [ebp - 0xc], eax
lea ebx, [ecx + eax*8 - 8]
test eax, eax
jle 0x4a6aa8
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 4]
inc eax
call fcn.0049cada
push dword [ebx + 4]
mov ecx, dword [ebp - 4]
push dword [ebx]
push 0x43
pop eax
call fcn.004a332b
mov eax, dword [ebx + 4]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
dec eax
call fcn.0049cada
dec dword [ebp - 0xc]
sub ebx, 8
cmp dword [ebp - 0xc], 0
jg 0x4a6a72
push dword [esi + 8]
push dword [ebp - 0x14]
call fcn.004984ff
mov ebx, dword [ebp - 8]
pop ecx
pop ecx
mov edx, dword [esi - 0x18]
mov ecx, dword [ebp - 4]
call fcn.0049c9ad
mov eax, dword [esi - 0x24]
test eax, eax
je 0x4a6b33
mov ecx, dword [ebp - 4]
push eax
push 0x71
pop eax
call fcn.004a331a
test dword [esi - 0x3c], 0x800000
pop ecx
mov dword [ebp - 0xc], eax
jne 0x4a6af4
mov eax, dword [ebp - 0x10]
push dword [eax]
mov ecx, dword [ebp - 4]
push 0x3e
pop eax
call fcn.004a331a
pop ecx
mov eax, dword [esi - 0x1c]
test eax, eax
jl 0x4a6b08
mov ecx, dword [ebp - 4]
push eax
push 0x3e
pop eax
call fcn.004a331a
pop ecx
cmp byte [esi - 7], 3
push dword [esi - 0xc]
mov ecx, dword [ebp - 4]
jne 0x4a6b1c
push dword [esi - 4]
push 2
pop eax
jmp 0x4a6b21
xor eax, eax
push 0
inc eax
call fcn.004a332b
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.0049cada
sub dword [ebp - 0x10], 0x38
dec ebx
sub esi, 0x50
mov dword [ebp - 8], ebx
test ebx, ebx
jge 0x4a6a18
mov edx, dword [edi + 0x14]
mov ecx, dword [ebp - 4]
call fcn.0049c9ad
and dword [ebp - 8], 0
cmp dword [edi + 0x18], 0
lea esi, [edi + 0x30]
jle 0x4a6c69
movzx eax, byte [esi + 0x34]
mov ecx, dword [ebp - 0x18]
imul eax, eax, 0x38
lea ecx, [eax + ecx + 8]
mov eax, dword [ecx + 0xc]
test byte [eax + 0x22], 2
jne 0x4a6bc3
cmp dword [eax + 0x1c], 0
jne 0x4a6bc3
test byte [edi + 4], 0x20
jne 0x4a6bc3
cmp byte [edi + 6], 0
mov ebx, dword [esi]
jne 0x4a6ba4
test ebx, 0x800000
jne 0x4a6ba4
push dword [ecx + 0x18]
mov ecx, dword [ebp - 4]
push 0x2b
pop eax
call fcn.004a331a
pop ecx
test ebx, 0xf0000
je 0x4a6bc3
test ebx, 0x20000000
jne 0x4a6bc3
push dword [esi + 0x20]
mov ecx, dword [ebp - 4]
push 0x2b
pop eax
call fcn.004a331a
pop ecx
test dword [esi], 0xf0000
je 0x4a6c57
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e], 0
jne 0x4a6c57
mov eax, dword [esi + 0x10]
mov ebx, dword [edi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, ebx
call fcn.0049cb06
mov ecx, eax
mov eax, dword [ebp - 4]
call fcn.0049ca71
cmp ebx, eax
jge 0x4a6c57
sub eax, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 0x1c]
jne 0x4a6c4f
mov al, byte [ecx]
cmp al, 0x1c
jne 0x4a6c42
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x4a6c4f
mov ebx, dword [ecx + 8]
mov edx, dword [edx + 8]
cmp ebx, dword [edx]
je 0x4a6c37
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
add edx, 4
cmp dword [ebp - 0xc], eax
jl 0x4a6c23
jmp 0x4a6c4f
mov eax, dword [ebp - 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x20]
jmp 0x4a6c4c
cmp al, 0x3d
jne 0x4a6c4f
mov eax, dword [esi + 0x20]
mov byte [ecx], 0x48
mov dword [ecx + 4], eax
add ecx, 0x14
dec dword [ebp - 0x10]
jne 0x4a6bfe
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add esi, 0x50
cmp eax, dword [edi + 0x18]
jl 0x4a6b62
fld qword [edi + 0x20]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x14]
fstp qword [eax + 0x1c0]
mov ebx, edi
call fcn.004a694f
pop ecx
pop esi
pop ebx
leave
ret