Function at 0x506d7f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0xa0
idiv ecx
mov dword [ebp - 0x20], eax
push 4
mov edx, dword [ebp - 0x20]
push edx
call fcn.00608bba
add esp, 8
mov dword [ebp - 0x2c], eax
push 2
mov eax, dword [ebp + 0xc]
push eax
call fcn.00608bba
add esp, 8
mov dword [ebp - 0xc], eax
push 4
push 0x3e8
call fcn.00608bba
add esp, 8
mov dword [ebp - 0x1c], eax
push 4
push 0x3e8
call fcn.00608bba
add esp, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], 0
push str.LocalBackgroundNoise
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0xc8]
call fcn.00513ac0
mov dword [ebp - 8], 0
jmp 0x506e1d
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jge 0x506e33
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov word [edx + ecx*2], 0
jmp 0x506e14
mov dword [ebp - 0x24], 0
jmp 0x506e45
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x20]
jge 0x506ec6
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x24]
imul edx, edx, 0xa0
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], 0
jmp 0x506e72
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xa0
jge 0x506e9e
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
fld dword [ebp - 0x40]
fmul dword [ebp - 0x40]
fadd dword [ebp - 0x34]
fstp dword [ebp - 0x34]
jmp 0x506e69
fld dword [ebp - 0x34]
fdiv dword [0x65fe64]
fst dword [ebp - 0x34]
sub esp, 8
fstp qword [esp]
call fcn.006090d4
add esp, 8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
fstp dword [eax + edx*4]
jmp 0x506e3c
mov dword [ebp - 0x24], 0
jmp 0x506ed8
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x20]
jge 0x506efa
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
fld dword [ecx + eax*4]
fadd dword [0x65fe60]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
fstp dword [eax + edx*4]
jmp 0x506ecf
mov dword [ebp - 0x24], 0
jmp 0x506f0c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x20]
jge 0x507139
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], 5
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x20]
jge 0x506fa7
fld dword [0x65fe5c]
fmul dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
fcomp dword [edx + ecx*4]
fnstsw ax
test ah, 0x41
jne 0x506fa7
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x4c]
jge 0x506fa7
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x20]
jge 0x506fa5
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
fld dword [edx + ecx*4]
fcomp dword [ebp - 0x54]
fnstsw ax
test ah, 0x41
jne 0x506fa5
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x54], edx
jmp 0x506f43
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x20]
jge 0x507134
fld dword [0x65fe5c]
fmul dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
fcomp dword [edx + ecx*4]
fnstsw ax
test ah, 0x41
je 0x507134
mov dword [ebp - 0x64], 0x14
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x5c], eax
fld dword [ebp - 0x54]
fdiv dword [ebp - 0x50]
sub esp, 8
fstp qword [esp]
call fcn.006090d4
add esp, 8
fstp dword [ebp - 0x60]
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x20]
jge 0x507027
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x2c]
fld dword [ecx + eax*4]
fcomp dword [ebp - 0x54]
fnstsw ax
test ah, 0x41
jne 0x507027
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x20]
jge 0x50709f
fld dword [ebp - 0x60]
fmul dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x2c]
fcomp dword [ecx + eax*4]
fnstsw ax
test ah, 1
je 0x50709f
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp - 0x64]
jge 0x50709f
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x20]
jge 0x507086
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x2c]
fld dword [ecx + eax*4]
fcomp dword [ebp - 0x54]
fnstsw ax
test ah, 0x41
jne 0x507086
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x54], ecx
fld dword [ebp - 0x54]
fdiv dword [ebp - 0x50]
sub esp, 8
fstp qword [esp]
call fcn.006090d4
add esp, 8
fstp dword [ebp - 0x60]
jmp 0x507027
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x20]
jge 0x507134
fld dword [ebp - 0x60]
fmul dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x2c]
fcomp dword [ecx + eax*4]
fnstsw ax
test ah, 1
jne 0x507134
mov edx, dword [ebp - 0x24]
imul edx, edx, 0xa0
mov dword [ebp - 0xcc], edx
fild dword [ebp - 0xcc]
fdiv dword [0x65e3e0]
fstp dword [ebp - 0x6c]
mov eax, dword [ebp - 0x58]
imul eax, eax, 0xa0
mov dword [ebp - 0xd0], eax
fild dword [ebp - 0xd0]
fdiv dword [0x65e3e0]
fstp dword [ebp - 0x68]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x6c]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x68]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x3e8
jl 0x50712e
push 1
call fcn.00607fcc
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x24], edx
jmp 0x506f03
fild dword [ebp - 0x20]
fsub dword [0x65fdbc]
fmul dword [0x65fe64]
fdiv dword [0x65e3e0]
fstp dword [ebp - 4]
mov dword [ebp - 0x18], 0
jmp 0x507166
fld dword [ebp - 0x18]
fadd dword [0x65fe58]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x18]
fcomp qword [0x65fe50]
fnstsw ax
test ah, 1
je 0x507481
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x70], eax
jmp 0x50718e
fld dword [ebp - 0x70]
fadd dword [0x65baf4]
fstp dword [ebp - 0x70]
fld dword [ebp - 0x70]
fadd dword [0x65baf4]
fcomp dword [ebp - 4]
fnstsw ax
test ah, 1
je 0x50747c
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 0
jmp 0x5071be
mov ecx, dword [ebp - 0x78]
add ecx, 1
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
cmp edx, dword [ebp - 0x10]
jge 0x507232
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x80], edx
fld dword [ebp - 0x7c]
fcomp dword [ebp - 0x70]
fnstsw ax
test ah, 1
jne 0x507207
fld dword [ebp - 0x70]
fadd dword [0x65baf4]
fcomp dword [ebp - 0x7c]
fnstsw ax
test ah, 0x41
jne 0x507207
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
fld dword [ebp - 0x80]
fcomp dword [ebp - 0x70]
fnstsw ax
test ah, 1
jne 0x507230
fld dword [ebp - 0x70]
fadd dword [0x65baf4]
fcomp dword [ebp - 0x80]
fnstsw ax
test ah, 0x41
jne 0x507230
mov ecx, dword [ebp - 0x74]
add ecx, 1
mov dword [ebp - 0x74], ecx
jmp 0x5071b5
cmp dword [ebp - 0x74], 4
jge 0x507477
fld dword [ebp - 0x70]
fmul dword [0x65e3e0]
fdiv dword [0x65fe64]
call fcn.0060838c
mov dword [ebp - 0x84], eax
fld dword [ebp - 0x70]
fadd dword [0x65baf4]
fmul dword [0x65e3e0]
fdiv dword [0x65fe64]
call fcn.0060838c
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 0xa
mov dword [ebp - 0x8c], 0x7e967699
mov dword [ebp - 0x90], 0xffffffff
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x88], edx
jmp 0x5072b1
mov eax, dword [ebp - 0x88]
add eax, 1
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
add ecx, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0x98]
jge 0x507395
mov dword [ebp - 0x9c], 0
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xa4], edx
jmp 0x5072f0
mov eax, dword [ebp - 0xa4]
add eax, 1
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x88]
add ecx, dword [ebp - 0x94]
cmp dword [ebp - 0xa4], ecx
jge 0x507330
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0xa8], ecx
fld dword [ebp - 0xa8]
fmul dword [ebp - 0xa8]
fadd dword [ebp - 0x9c]
fstp dword [ebp - 0x9c]
jmp 0x5072e1
mov edx, dword [ebp - 0x94]
add edx, 1
mov dword [ebp - 0xd4], edx
fild dword [ebp - 0xd4]
fdivr dword [ebp - 0x9c]
fst dword [ebp - 0x9c]
sub esp, 8
fstp qword [esp]
call fcn.006090d4
add esp, 8
fstp dword [ebp - 0xa0]
fld dword [ebp - 0xa0]
fcomp dword [ebp - 0x8c]
fnstsw ax
test ah, 1
je 0x507390
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x90], ecx
jmp 0x5072a2
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x2c]
fld dword [eax + edx*4]
fcomp dword [0x65f8f4]
fnstsw ax
test ah, 0x41
jne 0x507443
mov ecx, dword [ebp - 0x90]
imul ecx, ecx, 0xa0
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0x94]
imul edx, edx, 0xa0
mov eax, dword [ebp - 0xb4]
add eax, edx
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xac], ecx
jmp 0x5073fb
mov edx, dword [ebp - 0xac]
add edx, 1
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xac]
cmp eax, dword [ebp - 0xb0]
jge 0x50741a
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp - 0xc]
mov word [edx + ecx*2], 1
jmp 0x5073ec
cmp dword [ebp - 0x30], 0
je 0x507443
push 1
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc8]
call fcn.00513cba
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x78], ecx
jmp 0x507457
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x90]
add eax, dword [ebp - 0x94]
cmp dword [ebp - 0x78], eax
jge 0x507477
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x2c]
mov dword [edx + ecx*4], 0
jmp 0x50744e
jmp 0x507182
jmp 0x50715a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x507492
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 0x14]
cmp dword [ebp - 8], edx
jge 0x5074b6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movsx edx, word [ecx + eax*2]
test edx, edx
je 0x5074b4
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x507489
fild dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0x14]
mov dword [ebp - 0xd8], ecx
fidiv dword [ebp - 0xd8]
mov edx, dword [ebp + 0x18]
fstp dword [edx]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xb8], 0
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov ecx, dword [ebp + 0x18]
fld dword [ecx]
fcomp dword [0x65f8f4]
fnstsw ax
test ah, 0x41
jne 0x507520
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov dword [edx], ecx
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0xbc]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0xc8]
call fcn.00513e49
fild dword [ebp - 0xb8]
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0x14]
mov dword [ebp - 0xdc], eax
fidiv dword [ebp - 0xdc]
mov ecx, dword [ebp + 0x20]
fstp dword [ecx]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp - 0xbc]
mov dword [edx], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
fld dword [ebp - 0xc0]
sub esp, 8
fstp qword [esp]
call fcn.006088c7
add esp, 8
fadd qword [0x65b860]
fst dword [ebp - 0xc0]
sub esp, 8
fstp qword [esp]
call fcn.00608804
add esp, 8
fmul qword [0x65e678]
fstp dword [ebp - 0xc0]
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp - 0xc0]
mov dword [edx], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0060824b
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0060824b
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
call fcn.0060824b
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0060824b
add esp, 4
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0xc8]
call fcn.00513ba0
mov esp, ebp
pop ebp
ret 0x24