Function at 0x531170
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20c], ebx
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x1f4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x14]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5326d7
push dword fs:[eax]
mov dword fs:[eax], esp
fild dword [ebp + 0x18]
fdiv dword [0x5326e8]
fstp qword [ebp - 0x70]
wait
fild dword [ebp + 0x18]
fdivr dword [0x5326e8]
fstp qword [ebp - 0x68]
wait
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x168]
call fcn.0042bbb0
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x13d], 0
mov byte [ebp - 0x13e], 0
cmp dword [ebp + 8], 0xffffffff
jle 0x5311fa
mov eax, dword [ebp + 8]
mov dword [ebp - 0x134], eax
jmp 0x531206
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
cmp eax, 5
ja case.default.0x531211
jmp dword [eax*4 + 0x531218]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x110], 4
je 0x531247
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
jmp 0x53128e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x13d], 1
jmp 0x53128e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x18], eax
jmp 0x53128e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov dword [ebp - 0x18], eax
jmp 0x53128e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x18], eax
jmp 0x53128e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x18], eax
jmp 0x53128e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x134], 5
jne 0x5312b7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x13c], eax
jmp 0x5312cf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x134], 4
jne 0x5312f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
jmp 0x5313a6
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4c8ce4]
call fcn.00404634
test al, al
je 0x531374
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4c8ce4]
call fcn.00404658
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4c8ce4]
call fcn.00404658
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4c8ce4]
call fcn.00404658
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4c8ce4]
call fcn.00404658
cmp byte [eax + 0x5d], 0
je 0x5313a6
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4c8ce4]
call fcn.00404658
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x13e], 1
jmp 0x5313a6
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4c8bb8]
call fcn.00404634
test al, al
je 0x5313a6
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4c8bb8]
call fcn.00404658
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x84], eax
fild dword [ebp - 0x138]
fmul qword [ebp - 0x70]
fild dword [ebp - 0x14]
faddp st(1)
call fcn.00403000
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x7c], eax
fild dword [ebp - 0x13c]
fmul qword [ebp - 0x70]
fild dword [ebp - 0x10]
faddp st(1)
call fcn.00403000
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x84]
call fcn.004309ec
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x88]
call fcn.00430900
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x7c]
call fcn.004309ec
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x80]
call fcn.00430900
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x94]
cmp eax, dword [ebp - 0x84]
jl 0x531496
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x88]
jg 0x531496
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x7c]
jl 0x531496
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x80]
jle 0x5314fb
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x94]
shl eax, 2
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jle 0x5314fb
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x90]
dec edx
sub edx, eax
jl 0x5314fb
inc edx
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x5c]
call fcn.0042e744
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x50]
lea eax, [edx + eax*4]
mov ecx, 0x7f
mov edx, dword [ebp - 0x34]
call fcn.004035b8
inc dword [ebp - 0x38]
dec dword [ebp - 0x1e0]
jne 0x5314c9
mov dword [ebp - 0xa4], 0xffffffff
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x84]
shl eax, 2
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x40]
mov edx, dword [edx + 0x48]
sub eax, dword [edx + 0x1c]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x40]
mov edx, dword [edx + 0x48]
sub eax, dword [edx + 0x18]
mov dword [ebp - 0x1fc], eax
fild dword [ebp - 0x1fc]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.004307f8
fstp qword [ebp - 0x1a0]
wait
fld qword [ebp + 0x2c]
fadd qword [ebp - 0x1a0]
call fcn.00402f78
fstp qword [ebp - 0x180]
wait
fld qword [ebp + 0x2c]
fadd qword [ebp - 0x1a0]
call fcn.00402fc0
fstp qword [ebp - 0x188]
wait
fld qword [ebp - 0x1a0]
fchs
call fcn.00402f78
fstp qword [ebp - 0x198]
wait
fld qword [ebp - 0x1a0]
fchs
call fcn.00402fc0
fstp qword [ebp - 0x190]
wait
cmp byte [ebp - 0x13d], 0
jne 0x531cc2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x148], eax
push 0
push 2
fild dword [ebp - 0x138]
fmul qword [ebp - 0x198]
fabs
fstp xword [ebp - 0x208]
wait
fild dword [ebp - 0x13c]
fmul qword [ebp - 0x190]
fabs
fld xword [ebp - 0x208]
faddp st(1)
fild dword [ebp - 0x138]
fsubp st(1)
call fcn.00402ff4
call fcn.004062f4
mov dword [ebp - 0x14c], eax
push 0
push 2
fild dword [ebp - 0x13c]
fmul qword [ebp - 0x198]
fabs
fstp xword [ebp - 0x208]
wait
fild dword [ebp - 0x138]
fmul qword [ebp - 0x190]
fabs
fld xword [ebp - 0x208]
faddp st(1)
fild dword [ebp - 0x13c]
fsubp st(1)
call fcn.00402ff4
call fcn.004062f4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x138]
sar eax, 1
jns 0x5316a6
adc eax, 0
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x13c]
sar eax, 1
jns 0x5316b9
adc eax, 0
mov dword [ebp - 0x168], eax
fild dword [ebp - 0x138]
fmul qword [ebp + 0x24]
fdiv dword [0x5326ec]
call fcn.00402ff4
add eax, dword [ebp - 0x144]
mov dword [ebp - 0x16c], eax
fild dword [ebp - 0x13c]
fmul qword [ebp + 0x1c]
fdiv dword [0x5326ec]
call fcn.00402ff4
add eax, dword [ebp - 0x148]
mov dword [ebp - 0x170], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fmul qword [ebp - 0x68]
fstp qword [ebp - 0x48]
wait
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x80]
dec edx
sub edx, eax
jl 0x53265f
inc edx
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x5c]
call fcn.0042e744
mov dword [ebp - 0x50], eax
fld qword [ebp - 0x48]
call fcn.00403000
mov ecx, dword [ebp + 0xc]
call fcn.004063ec
mov ecx, dword [ebp + 0xc]
shl eax, cl
mov dword [ebp - 0x30], eax
fld qword [ebp - 0x48]
fadd qword [ebp - 0x68]
fstp qword [ebp - 0x48]
wait
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0xa4]
je 0x531c76
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fmul qword [ebp - 0x68]
fstp qword [ebp - 0x40]
wait
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x88]
dec edx
sub edx, eax
jl 0x531c6b
inc edx
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x34], eax
fld qword [ebp - 0x40]
call fcn.00403000
mov ecx, dword [ebp + 0xc]
call fcn.004063ec
mov ecx, dword [ebp + 0xc]
shl eax, cl
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp + 0x34]
mov dword [ebp - 0x160], eax
fld qword [ebp + 0x2c]
fcomp dword [0x5326f0]
fnstsw ax
sahf
je 0x5318af
mov eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fmul qword [ebp - 0x180]
mov eax, dword [ebp - 0x160]
sub eax, dword [ebp - 0x170]
mov dword [ebp - 0x1fc], eax
fild dword [ebp - 0x1fc]
fmul qword [ebp - 0x188]
faddp st(1)
fild dword [ebp - 0x16c]
faddp st(1)
fild dword [ebp - 0x144]
fsubp st(1)
fdiv qword [ebp + 0x24]
call fcn.00402ff4
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x160]
sub eax, dword [ebp - 0x170]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fmul qword [ebp - 0x180]
mov eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x1fc], eax
fild dword [ebp - 0x1fc]
fmul qword [ebp - 0x188]
fsubp st(1)
fild dword [ebp - 0x170]
faddp st(1)
fild dword [ebp - 0x148]
fsubp st(1)
fdiv qword [ebp + 0x1c]
call fcn.00402ff4
mov dword [ebp - 0x178], eax
jmp 0x5318fb
mov eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x144]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fdiv qword [ebp + 0x24]
call fcn.00402ff4
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x160]
sub eax, dword [ebp - 0x148]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fdiv qword [ebp + 0x1c]
call fcn.00402ff4
mov dword [ebp - 0x178], eax
fld qword [ebp - 0x1a0]
fcomp dword [0x5326f0]
fnstsw ax
sahf
je 0x5319b4
mov eax, dword [ebp - 0x174]
sub eax, dword [ebp - 0x164]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fmul qword [ebp - 0x198]
mov eax, dword [ebp - 0x178]
sub eax, dword [ebp - 0x168]
mov dword [ebp - 0x1fc], eax
fild dword [ebp - 0x1fc]
fmul qword [ebp - 0x190]
faddp st(1)
fild dword [ebp - 0x164]
faddp st(1)
call fcn.00402ff4
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x178]
sub eax, dword [ebp - 0x168]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fmul qword [ebp - 0x198]
mov eax, dword [ebp - 0x174]
sub eax, dword [ebp - 0x164]
mov dword [ebp - 0x1fc], eax
fild dword [ebp - 0x1fc]
fmul qword [ebp - 0x190]
fsubp st(1)
fild dword [ebp - 0x168]
faddp st(1)
call fcn.00402ff4
mov dword [ebp - 0x158], eax
jmp 0x5319cc
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x158], eax
fld qword [ebp - 0x40]
fadd qword [ebp - 0x68]
fstp qword [ebp - 0x40]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x120]
mov edx, dword [ebp - 0x2c]
mov al, byte [eax + edx]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x124]
mov ecx, dword [ebp - 0x30]
xor al, byte [edx + ecx]
je 0x5319ff
mov byte [ebp - 0x1d9], 0xb4
jmp 0x531a06
mov byte [ebp - 0x1d9], 0xff
cmp dword [ebp - 0x154], 0
jl 0x531b9f
cmp dword [ebp - 0x158], 0
jl 0x531b9f
mov eax, dword [ebp - 0x154]
cmp eax, dword [ebp - 0x138]
jge 0x531b9f
mov eax, dword [ebp - 0x158]
cmp eax, dword [ebp - 0x13c]
jge 0x531b9f
cmp byte [ebp - 0x13e], 0
jne 0x531ab7
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x154]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x158]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4], al
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x154]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x158]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x154]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x158]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 2], al
jmp 0x531bce
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x154]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x158]
movzx eax, byte [eax + edx]
mov dword [ebp - 0x1b0], eax
mov eax, pe_nt_image_headers32
sub eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x154]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x158]
movzx eax, byte [eax + edx]
imul dword [ebp - 0x1b0]
xor edx, edx
mov dl, byte [ebp - 0x1d9]
imul edx, dword [ebp - 0x1b4]
add eax, edx
shr eax, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4], al
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x154]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x158]
movzx eax, byte [eax + edx]
imul dword [ebp - 0x1b0]
xor edx, edx
mov dl, byte [ebp - 0x1d9]
imul edx, dword [ebp - 0x1b4]
add eax, edx
shr eax, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x154]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x158]
movzx eax, byte [eax + edx]
imul dword [ebp - 0x1b0]
xor edx, edx
mov dl, byte [ebp - 0x1d9]
imul edx, dword [ebp - 0x1b4]
add eax, edx
shr eax, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 2], al
jmp 0x531bce
mov al, byte [ebp - 0x1d9]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4], al
mov al, byte [ebp - 0x1d9]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 1], al
mov al, byte [ebp - 0x1d9]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 2], al
cmp dword [ebp - 0x134], 3
jne 0x531c5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x4c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x30]
cmp byte [eax + edx], 0
je 0x531c5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
cmp byte [eax + 0x54], 0
je 0x531c5c
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
movzx eax, byte [edx + eax*4 + 2]
shl eax, 6
lea eax, [eax + eax*2]
add eax, 0x3fc0
shr eax, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 2], al
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
movzx eax, byte [edx + eax*4 + 1]
shl eax, 6
lea eax, [eax + eax*2]
shr eax, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
movzx eax, byte [edx + eax*4]
shl eax, 6
lea eax, [eax + eax*2]
shr eax, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4], al
inc dword [ebp - 0x34]
dec dword [ebp - 0x1e4]
jne 0x5317b3
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xa4], eax
jmp 0x531cae
mov edx, dword [ebp - 0x38]
dec edx
mov eax, dword [ebp - 0x5c]
call fcn.0042e744
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0x84]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x50]
lea edx, [ecx + edx*4]
mov ecx, dword [ebp - 0xac]
call fcn.00402d40
inc dword [ebp - 0x38]
dec dword [ebp - 0x1e0]
jne 0x531739
jmp 0x53265f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 4]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 8]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x148], eax
push 0
push 2
fild dword [ebp - 0x138]
fmul qword [ebp - 0x198]
fabs
fstp xword [ebp - 0x208]
wait
fild dword [ebp - 0x13c]
fmul qword [ebp - 0x190]
fabs
fld xword [ebp - 0x208]
faddp st(1)
fild dword [ebp - 0x138]
fsubp st(1)
call fcn.00402ff4
call fcn.004062f4
mov dword [ebp - 0x14c], eax
push 0
push 2
fild dword [ebp - 0x13c]
fmul qword [ebp - 0x198]
fabs
fstp xword [ebp - 0x208]
wait
fild dword [ebp - 0x138]
fmul qword [ebp - 0x190]
fabs
fld xword [ebp - 0x208]
faddp st(1)
fild dword [ebp - 0x13c]
fsubp st(1)
call fcn.00402ff4
call fcn.004062f4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x138]
sar eax, 1
jns 0x531d99
adc eax, 0
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x13c]
sar eax, 1
jns 0x531dac
adc eax, 0
mov dword [ebp - 0x168], eax
fild dword [ebp - 0x138]
fmul qword [ebp + 0x24]
fdiv dword [0x5326ec]
call fcn.00402ff4
add eax, dword [ebp - 0x144]
mov dword [ebp - 0x16c], eax
fild dword [ebp - 0x13c]
fmul qword [ebp + 0x1c]
fdiv dword [0x5326ec]
call fcn.00402ff4
add eax, dword [ebp - 0x148]
mov dword [ebp - 0x170], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fmul qword [ebp - 0x68]
fstp qword [ebp - 0x48]
wait
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x80]
dec edx
sub edx, eax
jl 0x53265f
inc edx
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x5c]
call fcn.0042e744
mov dword [ebp - 0x50], eax
fld qword [ebp - 0x48]
call fcn.00403000
mov ecx, dword [ebp + 0xc]
call fcn.004063ec
mov ecx, dword [ebp + 0xc]
shl eax, cl
mov dword [ebp - 0x30], eax
fld qword [ebp - 0x48]
fadd qword [ebp - 0x68]
fstp qword [ebp - 0x48]
wait
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0xa4]
je 0x532618
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fmul qword [ebp - 0x68]
fstp qword [ebp - 0x40]
wait
fld qword [ebp - 0x40]
call fcn.00403000
dec eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x88]
dec edx
sub edx, eax
jl 0x53260d
inc edx
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x34], eax
fld qword [ebp - 0x40]
call fcn.00403000
mov ecx, dword [ebp + 0xc]
call fcn.004063ec
mov ecx, dword [ebp + 0xc]
shl eax, cl
mov dword [ebp - 0x2c], eax
fld qword [ebp - 0x40]
fadd qword [ebp - 0x68]
fstp qword [ebp - 0x40]
wait
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x9c]
je 0x5325c3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x120]
mov edx, dword [ebp - 0x2c]
mov al, byte [eax + edx]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x124]
mov ecx, dword [ebp - 0x30]
xor al, byte [edx + ecx]
je 0x531f0f
mov byte [ebp - 0x1d9], 0xb4
jmp 0x531f16
mov byte [ebp - 0x1d9], 0xff
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp + 0x34]
mov dword [ebp - 0x160], eax
fld qword [ebp + 0x2c]
fcomp dword [0x5326f0]
fnstsw ax
sahf
je 0x531ffa
mov eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fmul qword [ebp - 0x180]
mov eax, dword [ebp - 0x160]
sub eax, dword [ebp - 0x170]
mov dword [ebp - 0x1fc], eax
fild dword [ebp - 0x1fc]
fmul qword [ebp - 0x188]
faddp st(1)
fild dword [ebp - 0x16c]
faddp st(1)
fild dword [ebp - 0x144]
fsubp st(1)
fdiv qword [ebp + 0x24]
call fcn.00402ff4
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x160]
sub eax, dword [ebp - 0x170]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fmul qword [ebp - 0x180]
mov eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x1fc], eax
fild dword [ebp - 0x1fc]
fmul qword [ebp - 0x188]
fsubp st(1)
fild dword [ebp - 0x170]
faddp st(1)
fild dword [ebp - 0x148]
fsubp st(1)
fdiv qword [ebp + 0x1c]
call fcn.00402ff4
mov dword [ebp - 0x178], eax
jmp 0x532046
mov eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x144]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fdiv qword [ebp + 0x24]
call fcn.00402ff4
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x160]
sub eax, dword [ebp - 0x148]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fdiv qword [ebp + 0x1c]
call fcn.00402ff4
mov dword [ebp - 0x178], eax
fld qword [ebp - 0x1a0]
fcomp dword [0x5326f0]
fnstsw ax
sahf
je 0x5320ff
mov eax, dword [ebp - 0x174]
sub eax, dword [ebp - 0x164]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fmul qword [ebp - 0x198]
mov eax, dword [ebp - 0x178]
sub eax, dword [ebp - 0x168]
mov dword [ebp - 0x1fc], eax
fild dword [ebp - 0x1fc]
fmul qword [ebp - 0x190]
faddp st(1)
fild dword [ebp - 0x164]
faddp st(1)
call fcn.00402ff4
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x178]
sub eax, dword [ebp - 0x168]
mov dword [ebp - 0x1f8], eax
fild dword [ebp - 0x1f8]
fmul qword [ebp - 0x198]
mov eax, dword [ebp - 0x174]
sub eax, dword [ebp - 0x164]
mov dword [ebp - 0x1fc], eax
fild dword [ebp - 0x1fc]
fmul qword [ebp - 0x190]
fsubp st(1)
fild dword [ebp - 0x168]
faddp st(1)
call fcn.00402ff4
mov dword [ebp - 0x158], eax
jmp 0x532117
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x1a8], 0xff
xor eax, eax
mov dword [ebp - 0x1b8], eax
xor eax, eax
mov dword [ebp - 0x1bc], eax
xor eax, eax
mov dword [ebp - 0x1c0], eax
xor eax, eax
mov dword [ebp - 0x1c4], eax
xor eax, eax
mov dword [ebp - 0x1c8], eax
xor eax, eax
mov dword [ebp - 0x1cc], eax
xor eax, eax
mov dword [ebp - 0x1d0], eax
xor eax, eax
mov dword [ebp - 0x1d4], eax
xor eax, eax
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x66], 0
je 0x53226f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 7
jne 0x5321ab
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x154]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x158]
mov dword [ebp - 0x160], eax
jmp 0x5321bd
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0x54]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
call fcn.004c5164
and eax, 0xff
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0x48]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
call fcn.004c5164
and eax, 0xff
imul dword [ebp - 0x1ac]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0x4c]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
call fcn.004c5164
and eax, 0xff
imul dword [ebp - 0x1ac]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0x50]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
call fcn.004c5164
and eax, 0xff
imul dword [ebp - 0x1ac]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1ac]
sub dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 0
jle 0x5324ce
mov eax, dword [ebp - 4]
cmp byte [eax + 0x65], 0
je 0x5323be
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 1
jne 0x5322be
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x154]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x158]
mov dword [ebp - 0x160], eax
jmp 0x5322d0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x1a8], 0xff
jne 0x532303
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x54]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
call fcn.004c5164
and eax, 0xff
mov dword [ebp - 0x1ac], eax
jmp 0x532331
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x54]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
call fcn.004c5164
and eax, 0xff
imul dword [ebp - 0x1a8]
shr eax, 8
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x48]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
call fcn.004c5164
and eax, 0xff
imul dword [ebp - 0x1ac]
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x4c]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
call fcn.004c5164
and eax, 0xff
imul dword [ebp - 0x1ac]
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x50]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
call fcn.004c5164
and eax, 0xff
imul dword [ebp - 0x1ac]
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1ac]
sub dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 0
jle 0x5324ce
mov eax, dword [ebp - 4]
cmp byte [eax + 0x64], 0
je 0x5324a2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 6
jne 0x53240d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x154]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x158]
mov dword [ebp - 0x160], eax
jmp 0x53241f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x48]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
call fcn.004c5164
and eax, 0xff
imul dword [ebp - 0x1a8]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x4c]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
call fcn.004c5164
and eax, 0xff
imul dword [ebp - 0x1a8]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x50]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
call fcn.004c5164
and eax, 0xff
imul dword [ebp - 0x1a8]
mov dword [ebp - 0x1cc], eax
jmp 0x5324ce
xor eax, eax
mov al, byte [ebp - 0x1d9]
imul dword [ebp - 0x1a8]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1b8]
add eax, dword [ebp - 0x1d0]
add eax, dword [ebp - 0x1c4]
shr eax, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 2], al
mov eax, dword [ebp - 0x1bc]
add eax, dword [ebp - 0x1d4]
add eax, dword [ebp - 0x1c8]
shr eax, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [ebp - 0x1c0]
add eax, dword [ebp - 0x1d8]
add eax, dword [ebp - 0x1cc]
shr eax, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4], al
cmp dword [ebp - 0x134], 3
jne 0x5325b8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x4c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x30]
cmp byte [eax + edx], 0
je 0x5325b8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
cmp byte [eax + 0x54], 0
je 0x5325b8
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
movzx eax, byte [edx + eax*4 + 2]
shl eax, 6
lea eax, [eax + eax*2]
add eax, 0x3fc0
shr eax, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 2], al
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
movzx eax, byte [edx + eax*4 + 1]
shl eax, 6
lea eax, [eax + eax*2]
shr eax, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
movzx eax, byte [edx + eax*4]
shl eax, 6
lea eax, [eax + eax*2]
shr eax, 8
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4], al
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x9c], eax
jmp 0x5325fe
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
mov al, byte [edx + eax*4 - 4]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4], al
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
mov al, byte [edx + eax*4 - 3]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
mov al, byte [edx + eax*4 - 2]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov byte [ecx + edx*4 + 2], al
inc dword [ebp - 0x34]
dec dword [ebp - 0x1e4]
jne 0x531eb5
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xa4], eax
jmp 0x532650
mov edx, dword [ebp - 0x38]
dec edx
mov eax, dword [ebp - 0x5c]
call fcn.0042e744
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0x84]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x50]
lea edx, [ecx + edx*4]
mov ecx, dword [ebp - 0xac]
call fcn.00402d40
inc dword [ebp - 0x38]
dec dword [ebp - 0x1e0]
jne 0x531e2c
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x7c]
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x74]
mov dword [ebp - 0x214], eax
mov byte [ebp - 0x210], 0
lea edx, [ebp - 0x214]
xor ecx, ecx
mov eax, 0x5326fc
call fcn.0040b5bc
mov edx, dword [ebp - 0x20c]
mov eax, dword [0x7a8acc]
mov eax, dword [eax]
call fcn.00471f74
mov eax, dword [ebp - 4]
lea edx, [eax + 0x94]
mov eax, dword [ebp - 4]
call fcn.00529468
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5326de
lea eax, [ebp - 0x20c]
call fcn.004052bc
ret