Function at 0x4a878e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
lea edx, [ecx*4 + 4]
push edx
call fcn.0052fe32
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4a87ef
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
add ecx, 1
test ecx, ecx
je 0x4a87ef
push 0x5fb860
push 0x1ca
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
add eax, 4
push eax
push 0x5fb89c
push 0x600c10
call fcn.00530919
add esp, 0x14
push 1
call fcn.00530c95
mov dword [ebp - 8], 1
jmp 0x4a8801
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x34]
jg 0x4a884f
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
fld qword [edx + ecx*8]
fcomp qword [0x5b0958]
fnstsw ax
test ah, 0x40
jne 0x4a8840
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + eax*4], 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x50]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x50], eax
jmp 0x4a884d
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov dword [eax + edx*4], 0
jmp 0x4a87f8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x50]
shl edx, 4
push edx
call fcn.0052fe32
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4a88a0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x50], 0
je 0x4a88a0
push 0x5fb8d0
push 0x1d4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x50]
shl edx, 4
push edx
push 0x5fb90c
push 0x600c10
call fcn.00530919
add esp, 0x14
push 1
call fcn.00530c95
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004a72ed
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a740b
add esp, 4
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xf4]
test eax, eax
je 0x4a894c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 8], edx
jmp 0x4a88fa
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x2c]
jle 0x4a892e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xf8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xf8]
mov esi, dword [ebp - 8]
mov edi, dword [ecx + edx*8 - 8]
mov dword [eax + esi*8], edi
mov ecx, dword [ecx + edx*8 - 4]
mov dword [eax + esi*8 + 4], ecx
jmp 0x4a88f1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xf8]
mov dword [edx + eax*8], 0
mov dword [edx + eax*8 + 4], 0x3ff00000
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x44]
test ecx, ecx
je 0x4a897d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
push eax
push 0x5fb940
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
imul edx, edx, 0x19
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, edx
push ecx
call fcn.005301f0
add esp, 0xc
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xf4]
test eax, eax
je 0x4a89df
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xf6]
test edx, edx
je 0x4a89df
mov dword [ebp - 8], 1
jmp 0x4a89ab
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x34]
jg 0x4a89df
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x2c]
add edx, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0xf8]
fld qword [ecx + eax*8]
fmul qword [esi + edx*8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
fstp qword [ecx + eax*8]
jmp 0x4a89a2
movsx edx, word [ebp + 0x10]
cmp edx, 2
jne 0x4a89ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xf0]
mov word [eax + ecx*2], 1
jmp 0x4a8a14
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xf0]
mov word [ecx + edx*2], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 1
jmp 0x4a8a34
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x34]
jg 0x4a8b49
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
jmp 0x4a8a54
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [edx + eax*4]
jge 0x4a8ab0
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x58]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov esi, dword [ebp - 0x18]
mov ecx, dword [ecx + edx]
mov dword [esi + eax], ecx
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x58]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov esi, dword [ebp - 0x18]
mov edi, dword [ecx + edx + 8]
mov dword [esi + eax + 8], edi
mov ecx, dword [ecx + edx + 0xc]
mov dword [esi + eax + 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4a8a4b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + eax*4], 0
je 0x4a8b26
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xf0]
movsx eax, word [edx + eax*2]
test eax, eax
je 0x4a8aed
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
fld qword [edx + ecx*8]
fchs
mov eax, dword [ebp - 0xc]
shl eax, 4
mov ecx, dword [ebp - 0x18]
fstp qword [ecx + eax + 8]
jmp 0x4a8b0b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
shl ecx, 4
mov esi, dword [ebp - 0x18]
mov edi, dword [eax + edx*8]
mov dword [esi + ecx + 8], edi
mov edx, dword [eax + edx*8 + 4]
mov dword [esi + ecx + 0xc], edx
mov eax, dword [ebp - 0xc]
shl eax, 4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x2c]
mov dword [ecx + eax], edx
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + ecx*4], edx
jmp 0x4a8a2b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x50]
shl ecx, 4
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x58]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0052fd49
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.0052fd49
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
jmp 0x4a8b95
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x2c]
jle 0x4a8c4e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x7c]
mov esi, dword [ebp - 8]
mov edi, dword [eax + ecx*8 - 8]
mov dword [edx + esi*8], edi
mov eax, dword [eax + ecx*8 - 4]
mov dword [edx + esi*8 + 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x80]
mov esi, dword [ebp - 8]
mov edi, dword [edx + eax*8 - 8]
mov dword [ecx + esi*8], edi
mov edx, dword [edx + eax*8 - 4]
mov dword [ecx + esi*8 + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x94]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x94]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov cx, word [ecx + esi*2 - 2]
mov word [eax + edx*2], cx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x98]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x98]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov ax, word [eax + esi*2 - 2]
mov word [edx + ecx*2], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov dx, word [edx + esi*2 - 2]
mov word [ecx + eax*2], dx
jmp 0x4a8b8c
mov dword [ebp - 8], 1
jmp 0x4a8c60
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x2c]
jge 0x4a8ca5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x90]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + edx*4]
cmp ecx, dword [eax + 0x2c]
jl 0x4a8ca3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x90]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
add edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x90]
mov eax, dword [ebp - 8]
mov dword [ecx + eax*4], edx
jmp 0x4a8c57
movsx ecx, word [ebp + 0x10]
test ecx, ecx
je 0x4a8cb6
movsx edx, word [ebp + 0x10]
cmp edx, 2
jne 0x4a8cda
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x7c]
mov esi, dword [eax + 0x120]
mov dword [ecx + edx*8], esi
mov eax, dword [eax + 0x124]
mov dword [ecx + edx*8 + 4], eax
jmp 0x4a8d19
movsx ecx, word [ebp + 0x10]
cmp ecx, 1
jne 0x4a8d00
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x7c]
mov dword [edx + eax*8], 0
mov dword [edx + eax*8 + 4], 0
jmp 0x4a8d19
push 0x5fb948
push 0x600c10
call fcn.00530919
add esp, 8
push 1
call fcn.00530c95
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [eax + ecx*8], 0
mov dword [eax + ecx*8 + 4], 0
movsx ecx, word [ebp + 0x10]
cmp ecx, 2
jne 0x4a8d66
fld qword [ebp + 0x14]
fcomp qword [0x5b0958]
fnstsw ax
test ah, 0x40
jne 0x4a8d66
fld qword [ebp + 0x14]
fchs
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
fstp qword [edx + eax*8]
jmp 0x4a8d7f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c]
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*8], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + ecx*8 + 4], edx
mov eax, dword [ebp + 8]
mov word [eax + 0x64], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x90]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x94]
mov word [ecx + edx*2], 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x98]
mov word [edx + eax*2], 1
mov eax, dword [ebp + 8]
mov word [eax + 0x9c], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret