Function at 0x4b161a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x28]
test ecx, ecx
je 0x4b163a
mov edx, dword [ebp + 8]
push edx
call fcn.004ae3b0
add esp, 4
push 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, 1
push ecx
call fcn.00530b2b
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4b1691
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
add eax, 1
test eax, eax
je 0x4b1691
push 0x5fd740
push 0x387
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
add edx, 8
push edx
push 0x5fd77c
push 0x600c10
call fcn.00530919
add esp, 0x14
push 1
call fcn.00530c95
push 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, 1
push ecx
call fcn.00530b2b
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4b16e8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
add eax, 1
test eax, eax
je 0x4b16e8
push 0x5fd7b0
push 0x388
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
add edx, 8
push edx
push 0x5fd7ec
push 0x600c10
call fcn.00530919
add esp, 0x14
push 1
call fcn.00530c95
push 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
add ecx, 1
push ecx
call fcn.00530b2b
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b173f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
add eax, 1
test eax, eax
je 0x4b173f
push 0x5fd820
push 0x389
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, 8
push edx
push 0x5fd85c
push 0x600c10
call fcn.00530919
add esp, 0x14
push 1
call fcn.00530c95
push 2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, 1
push ecx
call fcn.00530b2b
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4b1796
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
add eax, 1
test eax, eax
je 0x4b1796
push 0x5fd890
push 0x38a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
add edx, 2
push edx
push 0x5fd8cc
push 0x600c10
call fcn.00530919
add esp, 0x14
push 1
call fcn.00530c95
mov eax, dword [ebp + 8]
mov dword [eax + 0xd0], 0
mov word [ebp - 8], 0
mov word [0x60aa78], 5
mov word [0x60aa7a], 0
mov word [0x60aa76], 0
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x3c], 1
jmp 0x4b17dc
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x2c]
jg 0x4b1850
movsx ecx, word [ebp - 0x3c]
test ecx, ecx
je 0x4b1850
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x74]
mov ecx, dword [ebp - 0x2c]
fld qword [eax + ecx*8]
fcomp qword [0x5b0958]
fnstsw ax
test ah, 1
jne 0x4b183f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x74]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x90]
mov esi, dword [ebp - 0x2c]
mov edx, dword [edx + esi*4]
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0x84]
fld qword [eax + ecx*8]
fcomp qword [esi + edx*8]
fnstsw ax
test ah, 0x41
je 0x4b183f
mov dword [ebp - 0x40], 1
jmp 0x4b1846
mov dword [ebp - 0x40], 0
mov ax, word [ebp - 0x40]
mov word [ebp - 0x3c], ax
jmp 0x4b17d3
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x24]
test edx, edx
je 0x4b1889
movsx eax, word [ebp - 0x3c]
test eax, eax
je 0x4b1877
push 0x5fd900
push 0x600c10
call fcn.00530919
add esp, 8
jmp 0x4b1889
push 0x5fd91c
push 0x600c10
call fcn.00530919
add esp, 8
movsx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x4b19fc
mov edx, dword [ebp - 0x38]
mov dword [edx], 0
mov dword [edx + 4], 0x3ff00000
mov dword [ebp - 0x2c], 1
jmp 0x4b18b7
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ecx + 0x2c]
jg 0x4b18d9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + eax*8], 0
mov dword [ecx + eax*8 + 4], 0
jmp 0x4b18ae
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004ae3d0
add esp, 8
mov dword [0x614a20], 0
mov dword [0x614a24], 0
mov dword [ebp - 0x2c], 1
jmp 0x4b190f
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x34]
jg 0x4b19fa
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + eax*8], 0
mov dword [ecx + eax*8 + 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + ecx*4 - 4]
mov dword [ebp - 0x34], edx
jmp 0x4b195a
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [edx + eax*4]
jge 0x4b19c6
mov edx, dword [ebp - 0x34]
shl edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x58]
mov edx, dword [ecx + edx]
mov eax, dword [ebp - 0x38]
fld qword [eax + edx*8]
fcomp qword [0x5b0958]
fnstsw ax
test ah, 0x40
jne 0x4b19c4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
shl eax, 4
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0x58]
mov eax, dword [esi + eax]
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
shl edi, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 0x58]
fld qword [esi + eax*8]
fmul qword [ebx + edi + 8]
fadd qword [edx + ecx*8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x38]
fstp qword [edx + ecx*8]
jmp 0x4b1951
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
fld qword [ecx + eax*8]
fcomp qword [0x614a20]
fnstsw ax
test ah, 1
je 0x4b19f5
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + edx*8]
mov dword [0x614a20], ecx
mov edx, dword [eax + edx*8 + 4]
mov dword [0x614a24], edx
jmp 0x4b1906
jmp 0x4b1a10
mov dword [0x614a20], 0
mov dword [0x614a24], 0
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x24]
test ecx, ecx
je 0x4b1a3a
mov edx, dword [0x614a24]
push edx
mov eax, dword [0x614a20]
push eax
push 0x5fd938
push 0x600c10
call fcn.00530919
add esp, 0x10
mov word [ebp - 8], 0
movsx ecx, word [0x60aa78]
cmp ecx, 5
jne 0x4b1daa
mov word [0x60aa76], 0
mov word [0x60aa7a], 0
movsx edx, word [ebp - 0x3c]
test edx, edx
je 0x4b1af3
mov eax, dword [ebp - 0x38]
push eax
xor ecx, ecx
mov cx, word [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b1e03
add esp, 0x10
movsx ecx, ax
test ecx, ecx
je 0x4b1aee
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x98]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [edx + eax*2]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004af520
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b2102
add esp, 0x14
movsx edx, ax
test edx, edx
je 0x4b1aee
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004af214
add esp, 0xc
jmp 0x4b1cfc
movsx eax, word [ebp - 8]
test eax, eax
jne 0x4b1b0b
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004b25f8
add esp, 8
cmp dword [ebp - 0x30], 0
jle 0x4b1cd0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
xor edx, edx
mov dx, word [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004b27e4
add esp, 0x18
movsx eax, ax
test eax, eax
je 0x4b1cc5
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x98]
mov edx, dword [ebp - 4]
xor eax, eax
mov ax, word [ecx + edx*2]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004af520
add esp, 0x10
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
fld qword [eax + edx*8]
fcomp qword [0x5b0958]
fnstsw ax
test ah, 0x40
je 0x4b1bf9
mov ecx, dword [ebp - 0x30]
push ecx
push 0x5fd948
push 0x600c10
call fcn.00530919
add esp, 0xc
push 0x5fd97c
push 0x600c10
call fcn.00530919
add esp, 8
mov word [0x60aa76], 0
movsx edx, word [0x60aa74]
test edx, edx
jne 0x4b1bd9
push 0x5fd9a4
push 0x600c10
call fcn.00530919
add esp, 8
mov word [0x60aa7a], 1
jmp 0x4b1bf4
push 0x5fd9c8
push 0x600c10
call fcn.00530919
add esp, 8
mov word [0x60aa78], 4
jmp 0x4b1cc3
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004af214
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x74]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x90]
mov esi, dword [ebp - 0x30]
mov eax, dword [eax + esi*4]
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0x84]
fld qword [ecx + edx*8]
fsub qword [esi + eax*8]
fst qword [ebp - 0x28]
fcomp qword [0x5b0958]
fnstsw ax
test ah, 0x41
jne 0x4b1cab
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
fld qword [ebp - 0x28]
fdiv qword [edx + ecx*8]
fstp qword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x84]
mov edx, dword [ebp - 4]
fld qword [ebp - 0x14]
fcomp qword [ecx + edx*8]
fnstsw ax
test ah, 0x41
je 0x4b1ca9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x90]
mov edx, dword [ebp - 0x30]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x98]
movsx eax, word [edx + eax*2]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x90]
mov ecx, dword [ebp - 0x30]
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x98]
mov word [ecx + edx*2], ax
jmp 0x4b1cc3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x74]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0xc]
fld qword [eax + ecx*8]
fdiv qword [esi + edx*8]
fstp qword [ebp - 0x14]
jmp 0x4b1cce
mov word [0x60aa78], 2
jmp 0x4b1cfc
mov word [ebp - 0x3c], 1
mov word [0x60aa76], 0
mov dword [0x614a20], 0
mov dword [0x614a24], 0
mov word [0x60aa7a], 1
movsx eax, word [0x60aa76]
test eax, eax
je 0x4b1d4f
xor ecx, ecx
mov cx, word [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x98]
mov ecx, dword [ebp - 4]
lea edx, [eax + ecx*2]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x84]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*8 + 4]
push ecx
mov edx, dword [edx + eax*8]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b2e2d
add esp, 0x24
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0xa8]
cmp eax, dword [edx + 0xac]
jl 0x4b1d6c
mov word [0x60aa7a], 1
movsx ecx, word [0x60aa7a]
test ecx, ecx
je 0x4b1da5
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x22]
test eax, eax
je 0x4b1d99
movsx ecx, word [ebp - 0x3c]
push ecx
push 0x5fd9e4
push 0x600c10
call fcn.00530919
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.004ae4fd
add esp, 4
jmp 0x4b1a40
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0xd0]
mov eax, dword [ebp + 8]
mov dword [eax + 0xd4], ecx
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0052fd49
add esp, 4
mov edx, dword [ebp - 0x20]
push edx
call fcn.0052fd49
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.0052fd49
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0052fd49
add esp, 4
movsx eax, word [0x60aa78]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret