Function at 0x40a780
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1dc
xor ebx, ebx
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x130], ebx
mov eax, dword [edx + 0x2c1c]
mov dword [esp], eax
call fcn.0040dc00
mov dword [ebp - 0xfc], eax
call fcn.0040cdb0
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x100]
mov eax, 1
test edx, edx
je 0x40b78f
imul eax, dword [ebp + 0x10], 0x828
mov edx, dword [ebp + 0xc]
cmp eax, 7
jbe 0x40a7f4
test dl, 4
je 0x40a7f4
mov dword [edx], 0
sub eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
cld
mov ecx, eax
shr ecx, 2
xor eax, eax
mov edi, edx
xor esi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x2c1c]
add eax, 0x2400
call fcn.00409df0
test eax, eax
je 0x40b7a0
lea esi, [esi]
mov edx, dword [ebp + 8]
xor byte [edx + esi*4 + 0x2403], 0x80
inc esi
cmp esi, 0x1ff
jle 0x40a820
mov eax, 0x447a0000
mov ebx, 0
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], eax
mov eax, 0x12c0
mov dword [ebp - 0xec], ebx
mov dword [esp + 4], eax
mov dword [esp], 0x14
call fcn.0040dc20
mov dword [ebp - 0x120], eax
mov edi, dword [ebp - 0x120]
mov eax, 1
test edi, edi
je 0x40b78f
fld dword [0x42be04]
mov dword [ebp - 0x104], ebx
xor ebx, ebx
mov esi, dword [ebp - 0x120]
fld dword [0x42be08]
fxch st(1)
mov dword [ebp - 0x114], ebx
mov edi, dword [ebp - 0x120]
add esi, 0x640
mov dword [ebp - 0x118], esi
mov eax, dword [ebp + 8]
add edi, 0xc80
fstp dword [ebp - 0x108]
xor esi, esi
fstp dword [ebp - 0x10c]
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x110], esi
call fcn.0040a620
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c1c]
mov dword [esp], eax
call fcn.0040dbf0
mov dword [ebp - 0x128], eax
xor ecx, ecx
mov edx, 0x64
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x174], edx
mov eax, dword [ebp - 0x124]
add eax, 0x32
push eax
mov eax, 2
fild dword [esp]
add esp, 4
fmul dword [0x42be0c]
fstp dword [ebp - 0x134]
fldz
fst dword [ebp - 0x130]
fstp dword [ebp - 0x12c]
mov dword [esp + 0xc], eax
fld dword [ebp - 0x134]
fstp dword [esp + 8]
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x12c]
mov dword [esp], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x128]
call fcn.00407de0
mov eax, dword [ebp - 0x48]
fldz
mov edx, dword [ebp - 0x44]
fstp dword [ebp - 0x12c]
fld1
mov dword [ebp - 0xe0], eax
mov eax, 2
fstp dword [ebp - 0x130]
mov dword [ebp - 0xdc], edx
mov dword [esp + 0xc], eax
fld dword [ebp - 0x134]
fstp dword [esp + 8]
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x12c]
mov dword [esp], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x128]
call fcn.00407de0
mov esi, dword [ebp - 0x174]
fldz
mov edi, dword [ebp - 0x120]
fst dword [ebp - 0x130]
mov eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xdc]
fstp dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x44]
mov dword [edi + esi*8 - 0x190], eax
mov dword [edi + esi*8 - 0x18c], edx
mov eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xdc]
mov dword [esp], eax
mov eax, ecx
mov dword [esp + 4], edx
mov edx, ebx
call fcn.004075c0
fld dword [ebp - 0x134]
mov dword [edi + esi*8 - 0x320], eax
mov dword [edi + esi*8 - 0x31c], edx
fstp dword [esp + 4]
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 0x14]
mov dword [esp], eax
mov edx, dword [edx]
lea eax, [ebp - 0x48]
call fcn.00407790
mov eax, 1
mov dword [esp + 0xc], eax
fld dword [ebp - 0x134]
fstp dword [esp + 8]
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x12c]
mov dword [esp], eax
lea eax, [ebp - 0x78]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x128]
call fcn.00407de0
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x30], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x48]
call fcn.00407610
fld dword [ebp - 0x134]
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx + 4]
fstp dword [esp + 4]
mov eax, dword [ecx + 0x18]
mov dword [esp], eax
lea eax, [ebp - 0x98]
call fcn.00407790
mov eax, dword [ebp - 0x98]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x94]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0x88]
mov dword [esp + 0x30], eax
mov eax, dword [ebp - 0x84]
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 0x80]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x48]
call fcn.00407610
fld dword [ebp - 0x134]
mov eax, dword [ebp - 0x48]
fld1
mov edx, dword [ebp - 0x44]
fldz
fxch st(1)
fstp dword [ebp - 0x130]
fstp dword [ebp - 0x12c]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
fstp dword [esp + 4]
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 0x14]
mov dword [esp], eax
mov edx, dword [edx]
lea eax, [ebp - 0x48]
call fcn.00407790
mov eax, 1
mov dword [esp + 0xc], eax
fld dword [ebp - 0x134]
fstp dword [esp + 8]
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x12c]
mov dword [esp], eax
lea eax, [ebp - 0xb8]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x128]
call fcn.00407de0
mov eax, dword [ebp - 0xb8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0xb4]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0xac]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0xa8]
mov dword [esp + 0x30], eax
mov eax, dword [ebp - 0xa4]
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 0xa0]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0x9c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x48]
call fcn.00407610
fld dword [ebp - 0x134]
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx + 4]
fstp dword [esp + 4]
mov eax, dword [ecx + 0x18]
mov dword [esp], eax
lea eax, [ebp - 0xd8]
call fcn.00407790
mov eax, dword [ebp - 0xd8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0xd4]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0xd0]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0xcc]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0xc8]
mov dword [esp + 0x30], eax
mov eax, dword [ebp - 0xc4]
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 0xc0]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0xbc]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x48]
call fcn.00407610
mov eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x44]
mov dword [edi + esi*8 + 0x190], eax
mov dword [edi + esi*8 + 0x194], edx
mov eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xdc]
mov dword [esp], eax
mov eax, ecx
mov dword [esp + 4], edx
mov edx, ebx
call fcn.004075c0
fld dword [ebp - 0x134]
mov dword [edi + esi*8], eax
mov eax, dword [ebp - 0x128]
mov dword [edi + esi*8 + 4], edx
lea edi, [ebp - 0xe0]
mov edx, dword [eax + 8]
fstp dword [esp + 4]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
lea eax, [ebp - 0x48]
call fcn.00407790
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x118]
mov dword [ebx + esi*8 - 0x320], eax
mov dword [ebx + esi*8 - 0x31c], edx
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [ebx + esi*8 - 0x190], eax
mov dword [ebx + esi*8 - 0x18c], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [ebx + esi*8], eax
mov dword [ebx + esi*8 + 4], edx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebx + esi*8 + 0x194], edx
mov dword [ebx + esi*8 + 0x190], eax
lea esi, [ebp - 0xe0]
add esi, 4
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
fld dword [ebp - 0x134]
mov dword [esp], 0
fstp dword [esp + 4]
call fcn.0040c730
mov edx, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x174]
mov ebx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0xe0]
mov dword [ebx + ecx*8 - 0x31c], edx
mov dword [ebx + ecx*8 - 0x320], eax
mov ebx, edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
fld dword [ebp - 0x134]
mov dword [esp], 0
fstp dword [esp + 4]
call fcn.0040cc70
mov edi, dword [ebp - 0x11c]
mov edx, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x174]
mov eax, dword [ebp - 0xe0]
mov dword [edi + ecx*8 - 0x18c], edx
mov dword [edi + ecx*8 - 0x190], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
fld dword [ebp - 0x134]
mov dword [esp], 1
fstp dword [esp + 4]
call fcn.0040c730
mov edx, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x174]
mov eax, dword [ebp - 0xe0]
mov dword [edi + ecx*8 + 4], edx
mov dword [edi + ecx*8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
fld dword [ebp - 0x134]
mov dword [esp], 1
fstp dword [esp + 4]
call fcn.0040cc70
inc dword [ebp - 0x124]
mov ecx, dword [ebp - 0x174]
mov eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xdc]
mov dword [edi + ecx*8 + 0x190], eax
mov dword [edi + ecx*8 + 0x194], edx
inc ecx
cmp dword [ebp - 0x124], 0x32
mov dword [ebp - 0x174], ecx
jl 0x40a904
xor ebx, ebx
lea esi, [ebp - 0xec]
mov edi, dword [ebp - 0x11c]
lea ecx, [ebp - 0xe4]
mov dword [esp + 0x20], edi
mov eax, dword [ebp - 0x118]
lea edi, [ebp - 0xe8]
mov dword [esp + 0x1c], eax
mov edx, dword [ebp - 0x120]
mov eax, 1
mov dword [esp + 0x14], eax
mov eax, 0x451c4000
mov dword [esp + 0x18], edx
mov edx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 0
mov eax, dword [ebp + 8]
call fcn.0040a360
mov eax, dword [ebp + 8]
fldz
fld dword [eax + 0x2c18]
fsubr dword [ebp - 0xec]
fxch st(1)
fucom st(1)
fnstsw ax
fxch st(1)
fstp dword [ebp - 0xec]
sahf
jbe 0x40b8a4
fstp dword [ebp - 0xec]
fld dword [ebp - 0xe8]
fld dword [ebp - 0x108]
fucomp st(1)
fnstsw ax
sahf
jbe 0x40b89d
fstp dword [ebp - 0x108]
xor eax, eax
fld dword [ebp - 0xe4]
fld dword [ebp - 0xec]
fxch st(1)
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], eax
fstp dword [ebp - 0x10c]
fstp dword [ebp - 0x104]
mov dword [ebp - 0xe8], 0x447a0000
inc ebx
cmp ebx, 1
mov dword [ebp - 0xe4], 0x447a0000
jle 0x40af34
mov eax, dword [ebp - 0x11c]
mov edi, 1
lea ebx, [ebp - 0xe4]
mov dword [esp + 0x20], eax
mov edx, dword [ebp - 0x118]
mov eax, 0x451c4000
mov dword [esp + 0x1c], edx
mov ecx, dword [ebp - 0x120]
mov dword [esp + 0x14], edi
lea edi, [ebp - 0xe8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x114]
call fcn.0040a360
fld dword [ebp - 0xe4]
fld dword [ebp - 0x10c]
fucompp
fnstsw ax
sahf
jbe 0x40b0b1
fld dword [ebp - 0xe8]
mov esi, 1
fld dword [ebp - 0xec]
fxch st(1)
mov dword [ebp - 0x110], esi
fstp dword [ebp - 0x108]
fstp dword [ebp - 0x104]
mov eax, dword [ebp - 0x120]
mov dword [esp], eax
call fcn.0040dc30
fld dword [ebp - 0x108]
fld qword [0x42be10]
fxch st(1)
fucompp
fnstsw ax
sahf
ja 0x40b0e7
fld dword [0x42be18]
fld dword [ebp - 0x104]
fucompp
fnstsw ax
sahf
jbe 0x40b0fb
fld dword [0x42be00]
fldz
fstp dword [ebp - 0x104]
fstp dword [ebp - 0x108]
fld qword [0x42be20]
mov eax, 0xbf800000
mov esi, 0x48927c00
mov dword [ebp - 0xf0], eax
lea ebx, [ebp - 0xf4]
mov dword [ebp - 0xf8], eax
fld st(0)
lea eax, [ebp - 0xf0]
fmul dword [ebp - 0x104]
fdiv qword [0x42be50]
fstp dword [ebp - 0xf4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x110]
mov dword [esp], eax
fstp qword [ebp - 0x188]
call fcn.0040c840
fld dword [ebp - 0x104]
lea eax, [ebp - 0xf8]
fadd dword [ebp - 0x108]
fld qword [ebp - 0x188]
fmulp st(1)
fdiv qword [0x42be50]
fstp dword [ebp - 0xf4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x110]
mov dword [esp], eax
call fcn.0040c9b0
fld dword [0x42be28]
fmul dword [ebp - 0xf8]
fld dword [0x42be04]
fld dword [ebp - 0x108]
fxch st(1)
fucompp
fnstsw ax
fst dword [ebp - 0xf8]
sahf
jbe 0x40b908
fild dword [ebp - 0x114]
fxch st(1)
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [eax], 1
mov eax, dword [ebp - 0xf0]
fstp dword [edx + 4]
mov dword [edx + 0xc], eax
fstp dword [edx + 0x1c]
fld dword [0x42be2c]
mov ebx, 0x40240000
mov ecx, dword [ebp + 8]
fdivr dword [ecx + 0x2c08]
mov dword [esp + 4], ebx
mov dword [esp], 0
fstp qword [esp + 8]
call sub.msvcrt.dll_pow
mov ebx, dword [ebp - 0x100]
mov ecx, 0x40240000
mov esi, dword [ebp + 8]
fstp dword [ebx + 0x20]
fld dword [0x42be34]
fdivr dword [esi + 0x2c00]
mov dword [esp], 0
mov dword [esp + 4], ecx
fstp qword [esp + 8]
call sub.msvcrt.dll_pow
fstp dword [ebx + 0x18]
mov eax, dword [esi + 0x2c04]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x2c1c]
xor esi, esi
mov dword [ebx + 0x24], eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x100]
fld dword [edx + esi*4]
mov eax, dword [edi + 4]
fmul dword [0x42be38]
mov ebx, eax
fadd qword [0x42be40]
fstp dword [eax + esi*4]
fld dword [eax + esi*4]
fstp qword [ebp - 0x140]
fld dword [edi + 0x20]
fstp qword [esp]
call sub.msvcrt.dll_log10
fmul qword [0x42be58]
fadd qword [ebp - 0x140]
fstp dword [ebx + esi*4]
mov ebx, dword [edi + 4]
fld dword [edi + 0x18]
fld dword [ebx + esi*4]
fstp qword [ebp - 0x148]
fstp qword [esp]
call sub.msvcrt.dll_log10
fmul qword [0x42be58]
mov eax, dword [ebp - 0xfc]
fadd qword [ebp - 0x148]
fstp dword [ebx + esi*4]
mov ebx, dword [edi + 4]
fld dword [eax + esi*4 + 0x800]
mov eax, dword [edi + 8]
fmul st(0)
mov edx, eax
shr edx, 0x1f
add eax, edx
mov edx, dword [ebp - 0xfc]
sar eax, 1
lea eax, [esi + eax]
fld dword [edx + eax*4 + 0x800]
fld dword [edx + esi*4]
fxch st(1)
fmul st(0)
fxch st(1)
fmul st(0)
fxch st(2)
faddp st(1)
fld dword [edx + eax*4]
fmul st(0)
faddp st(2)
fld dword [ebx + esi*4]
fxch st(1)
fmulp st(2)
fstp qword [ebp - 0x150]
fstp qword [esp]
call sub.msvcrt.dll_log10
fmul dword [0x42be30]
fsubr qword [ebp - 0x150]
fstp dword [ebx + esi*4]
inc esi
cmp esi, 0xff
jle 0x40b260
mov eax, dword [ebp + 0x10]
xor esi, esi
dec eax
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x100]
xor edx, edx
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x168], ecx
cmp ecx, 0
jle 0x40b3b1
mov ebx, dword [ebp - 0x100]
mov edi, 0x41800000
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x18c], edi
mov ebx, esi
shl ebx, 9
fld dword [ebp - 0x18c]
mov edi, dword [ebp - 0x100]
lea eax, [ebx + edx]
fld dword [edi + 0x20]
mov edi, dword [ebp + 8]
fmul dword [edi + eax*4 + 0x400]
mov eax, dword [ebp - 0x100]
fst dword [ecx + edx*4]
fmul dword [eax + 0x18]
fmul st(1)
fstp dword [ecx + edx*4]
inc edx
cmp dword [ebp - 0x168], edx
jg 0x40b37f
fstp st(0)
mov dword [esp], esi
call fcn.00406860
mov edx, dword [ebp - 0x16c]
mov dword [esp], edx
mov edx, eax
mov eax, dword [ebp - 0x100]
call fcn.00406ea0
mov dword [ebp + esi*4 - 0x28], eax
test eax, eax
je 0x40b90f
inc esi
cmp esi, 3
jle 0x40b34a
mov esi, dword [ebp - 0x100]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x16c]
mov esi, dword [esi + 4]
add ebx, 0x828
shl eax, 2
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x158], esi
mov dword [esp + 4], eax
mov dword [esp], 0x11
call fcn.0040dc20
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 0x164]
xor eax, eax
test edx, edx
je 0x40b721
xor edi, edi
mov ebx, 0xc1200000
mov eax, dword [ebp - 0x16c]
test eax, eax
jle 0x40b483
mov edx, dword [ebp + edi*4 - 0x28]
mov dword [ebp - 0x18c], ebx
xor esi, esi
mov ecx, dword [ebp - 0x16c]
fld dword [ebp - 0x18c]
mov eax, dword [esi + edx]
test eax, eax
je 0x40b478
fld dword [esi + edx + 4]
fxch st(1)
fucom st(1)
fnstsw ax
fstp st(1)
sahf
jbe 0x40b478
mov dword [esi + edx], 0
add esi, 0x828
dec ecx
jne 0x40b45b
fstp st(0)
inc edi
cmp edi, 4
jl 0x40b439
mov edx, dword [ebp - 0x164]
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0x160], ecx
mov dword [edx], 0
xor ecx, ecx
cmp ecx, dword [ebp - 0x16c]
jge 0x40b4c5
mov eax, dword [ebp + edi*4 - 0x28]
mov edx, dword [eax]
test edx, edx
jne 0x40b853
inc ecx
add eax, 0x828
cmp ecx, dword [ebp - 0x16c]
jl 0x40b4ad
inc edi
cmp edi, 4
jl 0x40b49f
mov edi, dword [ebp - 0x16c]
cmp dword [ebp - 0x160], edi
jge 0x40b608
fld dword [0x42be48]
mov eax, dword [ebp - 0x160]
fldz
fld dword [0x42be4c]
mov edx, dword [ebp - 0x164]
fld dword [0x42be30]
lea eax, [edx + eax*4]
mov dword [ebp - 0x19c], eax
mov eax, 1
xor esi, esi
mov dword [ebp - 0x15c], eax
xor edx, edx
fld st(3)
mov ebx, 0xffffffff
cmp edx, dword [ebp - 0x16c]
jge 0x40b7d1
mov ecx, dword [ebp + esi*4 - 0x28]
xor eax, eax
mov dword [ebp - 0x190], eax
jmp 0x40b54d
fstp st(1)
mov ebx, edx
add dword [ebp - 0x190], 0x828
inc edx
cmp edx, dword [ebp - 0x16c]
jge 0x40b57a
mov edi, dword [ebp - 0x190]
mov eax, dword [edi + ecx]
test eax, eax
je 0x40b53a
fld dword [edi + ecx + 0xc]
fucom st(1)
fnstsw ax
sahf
ja 0x40b536
fstp st(0)
add dword [ebp - 0x190], 0x828
inc edx
cmp edx, dword [ebp - 0x16c]
jl 0x40b54d
fstp st(0)
cmp ebx, 0xffffffff
je 0x40b5ab
mov ecx, dword [ebp - 0x15c]
test ecx, ecx
je 0x40b7d8
imul eax, ebx, 0x828
mov edx, dword [ebp + esi*4 - 0x28]
add eax, edx
mov edx, dword [ebp - 0x19c]
mov dword [edx], eax
xor eax, eax
mov dword [ebp - 0x15c], eax
inc esi
cmp esi, 4
jl 0x40b513
mov eax, dword [ebp - 0x15c]
test eax, eax
jne 0x40b5dc
inc dword [ebp - 0x160]
mov ecx, dword [ebp - 0x19c]
mov eax, dword [ecx]
add ecx, 4
mov dword [ebp - 0x19c], ecx
mov dword [eax], 0
mov eax, dword [ebp - 0x15c]
mov ebx, dword [ebp - 0x16c]
test eax, eax
sete al
xor edx, edx
cmp dword [ebp - 0x160], ebx
setl dl
test eax, edx
jne 0x40b506
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
xor edi, edi
cmp edi, dword [ebp - 0x160]
jge 0x40b6d9
xor eax, eax
mov esi, dword [ebp - 0x154]
mov dword [ebp - 0x170], eax
xor eax, eax
mov dword [ebp - 0x178], eax
mov dword [esi], 1
mov eax, dword [ebp - 0x164]
xor ecx, ecx
mov edx, dword [ebp - 0x178]
mov ebx, dword [eax + edi*4]
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x154]
add edx, eax
nop
mov eax, dword [ebx + ecx*8 + 0x20]
mov dword [edx + 0x20], eax
mov eax, dword [ebx + ecx*8 + 0x24]
inc ecx
mov dword [edx + 0x24], eax
add edx, 8
cmp ecx, 0xff
jle 0x40b670
add dword [ebp - 0x178], 0x828
inc edi
mov edx, dword [ebp - 0x170]
mov eax, dword [ebx + 0x820]
add esi, 0x828
mov ecx, dword [ebp - 0x154]
mov dword [edx + ecx + 0x820], eax
mov eax, dword [ebx + 0x824]
mov dword [edx + ecx + 0x824], eax
add edx, 0x828
cmp edi, dword [ebp - 0x160]
mov dword [ebp - 0x170], edx
jl 0x40b62c
mov edi, dword [ebp - 0x160]
cmp edi, dword [ebp - 0x16c]
jge 0x40b70d
imul eax, edi, 0x828
mov ebx, dword [ebp - 0x154]
add eax, ebx
mov ebx, dword [ebp - 0x16c]
sub ebx, edi
mov edi, ebx
mov dword [eax], 0
add eax, 0x828
dec edi
jne 0x40b6ff
mov esi, dword [ebp - 0x164]
mov dword [esp], esi
call fcn.0040dc30
mov eax, dword [ebp - 0x154]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
sete bl
mov ecx, dword [edi]
test ecx, ecx
je 0x40b76b
cmp dword [ebp + 0x10], 1
jle 0x40b76b
mov esi, dword [ebp + 0x10]
mov ecx, 0x828
dec esi
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx + eax]
test edx, edx
je 0x40b762
fld dword [ecx + eax + 4]
fld dword [eax + 4]
fucompp
fnstsw ax
sahf
jbe 0x40b762
mov edx, dword [ebp + 0xc]
mov dword [ecx + edx], 0
add ecx, 0x828
dec esi
jne 0x40b740
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x28]
inc esi
mov dword [esp], eax
call fcn.0040dc30
cmp esi, 3
jle 0x40b76d
mov ecx, dword [ebp - 0x100]
mov dword [esp], ecx
call fcn.0040cee0
mov eax, ebx
add esp, 0x1dc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 8]
xor byte [ecx + esi*4 + 0x403], 0x80
inc esi
cmp esi, 0x7ff
jg 0x40a834
mov ecx, dword [ebp + 8]
xor byte [ecx + esi*4 + 0x403], 0x80
inc esi
cmp esi, 0x7ff
jle 0x40b7a0
jmp 0x40a834
fstp st(0)
jmp 0x40b5ab
mov eax, dword [ebp - 0x19c]
imul edi, ebx, 0x828
mov ecx, dword [ebp + esi*4 - 0x28]
mov edx, dword [eax]
fld dword [edi + ecx + 0xc]
mov dword [ebp - 0x190], edi
fld dword [edx + 0xc]
fsub st(3)
fxch st(1)
fucompp
fnstsw ax
sahf
jbe 0x40b5ab
fld dword [edx + 4]
fsubr dword [edi + ecx + 4]
fxch st(3)
fucom st(3)
fnstsw ax
sahf
jbe 0x40b81c
fxch st(3)
fchs
fxch st(3)
fxch st(3)
fucomp st(1)
fnstsw ax
sahf
jbe 0x40b8ab
fld dword [edx + 0x18]
imul ebx, ebx, 0x828
fld dword [ebx + ecx + 0x18]
fxch st(1)
fucompp
fnstsw ax
sahf
jbe 0x40b5ab
lea edx, [ecx + ebx]
mov ecx, dword [ebp - 0x19c]
mov dword [ecx], edx
jmp 0x40b5ab
cmp ecx, dword [ebp - 0x16c]
jge 0x40b4c5
mov ebx, dword [ebp - 0x164]
mov esi, dword [ebx]
test esi, esi
jne 0x40b887
imul eax, ecx, 0x828
mov edx, dword [ebp + edi*4 - 0x28]
mov esi, dword [ebp - 0x160]
add eax, edx
mov dword [ebx + esi*4], eax
inc esi
mov dword [ebp - 0x160], esi
imul eax, ecx, 0x828
mov edx, dword [ebp + edi*4 - 0x28]
mov dword [eax + edx], 0
jmp 0x40b4c5
fstp st(0)
jmp 0x40affe
fstp st(0)
jmp 0x40afb9
fld dword [edx + 0x14]
mov eax, dword [ebp - 0x158]
mov edi, dword [edx + 0x824]
fld dword [eax + edi*4]
fucompp
fnstsw ax
sahf
jbe 0x40b8f6
fld dword [edx + 0x18]
imul edi, ebx, 0x828
fld dword [edi + ecx + 0x18]
fxch st(1)
mov dword [ebp - 0x190], edi
fucompp
fnstsw ax
sahf
jbe 0x40b8f6
mov dword [edx], 0
mov edx, dword [ebp - 0x19c]
lea eax, [ecx + edi]
mov dword [edx], eax
jmp 0x40b5ab
imul eax, ebx, 0x828
mov dword [eax + ecx], 0
jmp 0x40b5ab
fstp st(0)
jmp 0x40b1e5
xor ebx, ebx
cmp ebx, esi
jge 0x40b924
mov eax, dword [ebp + ebx*4 - 0x28]
inc ebx
mov dword [esp], eax
call fcn.0040dc30
jmp 0x40b911
mov ecx, dword [ebp - 0x100]
mov dword [esp], ecx
call fcn.0040cee0
add esp, 0x1dc
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret