Function at 0x572b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6255d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
mov ebx, ecx
push ebp
push esi
mov esi, dword [ebx + 0x100]
push edi
add esi, 0x4588
mov dword [esp + 0x20], ebx
mov eax, dword [esi + 0xfc]
test eax, eax
jle 0x572bfe
mov eax, dword [esi + 0x104]
lea ecx, [eax - 1]
test ecx, ecx
jge 0x572bd8
cmp eax, 1
jg 0x572b79
lea ebp, [eax + 0x20]
cmp ebp, 1
jg 0x572b7e
mov ebp, 1
lea edx, [ebp*4]
push edx
call fcn.0061317d
mov edi, eax
add esp, 4
test edi, edi
je 0x572bd8
mov ecx, dword [esi + 0x104]
xor eax, eax
test ecx, ecx
jle 0x572bbd
cmp eax, ebp
jge 0x572bbd
mov ecx, dword [esi + 0xf8]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov dword [edi + eax*4 - 4], edx
mov ecx, dword [esi + 0x104]
cmp eax, ecx
jl 0x572ba0
mov eax, dword [esi + 0xf8]
push eax
call fcn.00613172
add esp, 4
mov dword [esi + 0xf8], edi
mov dword [esi + 0x104], ebp
mov eax, dword [esi + 0xf8]
mov eax, dword [eax]
test eax, eax
jl 0x572bfe
mov ecx, dword [0x6833d0]
push eax
mov ecx, dword [ecx + 0x424]
call fcn.00603f70
test eax, eax
mov dword [esp + 0x4c], eax
jne 0x572c16
mov edx, dword [esp + 0x1b4]
xor eax, eax
mov dword [edx + 0x10c], 0
jmp 0x573c76
mov esi, dword [esp + 0x1b4]
mov eax, dword [esi + 0x10c]
test eax, eax
jne 0x572c2d
mov dword [esi + 0x158], eax
mov ebp, dword [esp + 0x190]
cmp eax, 1
jne 0x572c59
mov edi, dword [esi]
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
push 0xff
lea edx, [esp + 0x84]
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x48], eax
push edx
jmp 0x572caf
test ebp, ebp
je 0x572c84
mov ecx, ebp
call fcn.005d5880
mov edi, eax
mov ecx, ebp
mov dword [esp + 0x2c], edi
call fcn.0040a8e0
fstp dword [esp + 0x40]
push 0xff
mov ecx, ebp
call fcn.0040a8a0
push eax
jmp 0x572ca7
mov edi, dword [esp + 0x198]
mov ecx, dword [esp + 0x19c]
mov edx, dword [esp + 0x1a0]
push 0xff
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], ecx
push edx
lea eax, [esp + 0x88]
push eax
call fcn.00613360
fld dword [esp + 0x4c]
add esp, 0xc
call fcn.0061318c
mov ecx, eax
mov dword [esp + 0x34], eax
and ecx, reloc.DPLAYX.dll_Ordinal_1
jns 0x572cd3
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
mov edx, dword [ebx + 0x100]
sete byte [esp + 0x27]
imul eax, eax
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x7c], eax
mov eax, dword [edx + 0xf0]
mov ecx, dword [eax + 0x74]
mov eax, dword [ecx + edi*4]
test eax, eax
mov dword [esp + 0x70], eax
jne 0x572d10
mov dword [esi + 0x10c], eax
jmp 0x573c76
push edi
mov ecx, ebx
call fcn.00576760
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
jne 0x572d32
mov dword [esi + 0x10c], 0
xor eax, eax
jmp 0x573c76
test ebp, ebp
mov dword [esp + 0x18], 0
je 0x572d48
mov edx, dword [ebp + 0xb0]
mov dword [esp + 0x18], edx
mov eax, dword [esi + 0x10c]
test eax, eax
jne 0x5731d0
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [esi + 0x128], 0xffffffff
mov ecx, dword [edi + 0x100]
push 0x6d
push 0xffffffffffffffff
call fcn.00411720
mov ecx, dword [edi + 0x100]
mov ebx, eax
mov eax, dword [esi + 0x108]
mov dword [esp + 0x5c], ebx
push eax
call fcn.00411700
test ebx, ebx
mov edi, eax
je 0x572db4
fld dword [ebx + 0x38]
call fcn.0061318c
fld dword [ebx + 0x3c]
mov ebp, eax
mov dword [esp + 0x38], ebp
jmp 0x572dcd
test edi, edi
jne 0x572dbc
mov edi, dword [esp + 0x4c]
fld dword [edi + 0x38]
call fcn.0061318c
fld dword [edi + 0x3c]
mov ebp, eax
mov dword [esp + 0x38], ebp
call fcn.0061318c
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
test ecx, ecx
jne 0x572e3b
mov ecx, dword [esp + 0x190]
test ecx, ecx
jne 0x572e0e
cmp dword [esi + 0x10c], 1
je 0x572e0e
mov ecx, dword [esp + 0x1ac]
mov edx, dword [esp + 0x1b0]
mov dword [esi + 0x130], ecx
mov dword [esi + 0x134], edx
jmp 0x572e1a
mov dword [esi + 0x130], ebp
mov dword [esi + 0x134], eax
test ebx, ebx
je 0x572e35
mov ecx, ebx
call fcn.00539cc0
and eax, 0xff
mov dword [esi + 0x12c], eax
jmp 0x572ffb
mov ecx, dword [esp + 0x4c]
jmp 0x572e20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x100]
add ecx, 0x1348
call fcn.0040d7c0
test eax, eax
mov dword [esi + 0x128], eax
jge 0x572e6b
mov dword [esi + 0x10c], 0
xor eax, eax
jmp 0x573c76
mov ecx, dword [esp + 0x20]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x14], 0x7f7fffff
mov eax, dword [ecx + 0x2b8]
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jle 0x572f4f
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x2bc]
lea ecx, [eax + ebp]
mov eax, dword [eax + ebp]
cmp eax, 0xffffffff
je 0x572f27
xor edx, edx
mov dl, byte [ecx + 0xb]
mov ecx, dword [esi + 0x128]
cmp edx, ecx
jne 0x572f27
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x100]
call fcn.00411700
mov edi, eax
test edi, edi
je 0x572f27
cmp byte [edi + 0x48], 2
ja 0x572f27
mov ecx, dword [esp + 0x20]
push edi
call fcn.00571c60
test eax, eax
je 0x572f27
fild dword [esp + 0x38]
fsubr dword [edi + 0x38]
fild dword [esp + 0x3c]
fsubr dword [edi + 0x3c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fcom dword [0x645188]
fnstsw ax
test ah, 1
jne 0x572f25
mov ecx, dword [edi + 8]
cmp word [ecx + 0x10], 0x6d
je 0x572f47
fcom dword [esp + 0x14]
fnstsw ax
test ah, 1
je 0x572f25
fstp dword [esp + 0x14]
mov ebx, edi
jmp 0x572f27
fstp st(0)
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc eax
add ebp, 0x2c
mov ecx, dword [edx + 0x2b8]
mov dword [esp + 0x1c], eax
cmp eax, ecx
jl 0x572e8d
jmp 0x572f4b
fstp st(0)
mov ebx, edi
test ebx, ebx
jne 0x572f60
mov dword [esi + 0x10c], 0
xor eax, eax
jmp 0x573c76
mov ecx, ebx
call fcn.00539cc0
mov ecx, dword [esp + 0x5c]
and eax, 0xff
test ecx, ecx
mov dword [esi + 0x12c], eax
je 0x572fdf
call fcn.00539cc0
mov ecx, dword [esi + 0x12c]
and eax, 0xff
cmp eax, ecx
jne 0x572fdf
fild dword [esp + 0x38]
fsubr dword [ebx + 0x38]
fild dword [esp + 0x3c]
fsubr dword [ebx + 0x3c]
fst dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld st(1)
fmul st(2)
faddp st(1)
fsqrt
fdivr dword [0x645184]
fst dword [esp + 0x14]
fmulp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [ebx + 0x38]
fsub st(1)
call fcn.0061318c
fstp st(0)
mov dword [esi + 0x130], eax
fld dword [ebx + 0x3c]
fsub dword [esp + 0x1c]
jmp 0x572ff0
fld dword [ebx + 0x38]
call fcn.0061318c
mov dword [esi + 0x130], eax
fld dword [ebx + 0x3c]
call fcn.0061318c
mov dword [esi + 0x134], eax
mov eax, dword [esp + 0x190]
test eax, eax
jne 0x573043
cmp dword [esi + 0x10c], 1
je 0x573043
mov eax, dword [esp + 0x1b0]
mov ecx, dword [esp + 0x1ac]
mov ebp, dword [esp + 0x1a4]
mov edi, dword [esp + 0x1a8]
push eax
push ecx
mov ecx, dword [esp + 0x54]
call fcn.00539bd0
and eax, 0xff
mov dword [esi + 0x12c], eax
jmp 0x57308c
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x573126
mov edx, dword [esp + 0x30]
lea eax, [edx - 1]
cmp eax, 0xb
ja case.0x573067.5
xor ecx, ecx
mov cl, byte [eax + 0x573ca8]
jmp dword [ecx*4 + 0x573c94]
mov edx, dword [esp + 0x20]
mov ebp, 7
push 0x56
mov ecx, dword [edx + 0x100]
add ecx, 0x4588
call fcn.0058bbe0
mov edi, eax
cmp ebp, edi
jl 0x57312d
mov dword [esi + 0x10c], 0
xor eax, eax
jmp 0x573c76
mov eax, dword [esp + 0x20]
mov ebp, 4
push 0x57
mov ecx, dword [eax + 0x100]
jmp 0x57307f
mov edi, dword [esp + 0x20]
push 0x4a
mov ecx, dword [edi + 0x100]
add ecx, 0x4588
call fcn.0058bbe0
mov ecx, dword [edi + 0x100]
push 0x4a
add ecx, 0x4588
mov ebp, eax
call fcn.0058bbe0
mov edi, eax
shl edi, 1
jmp 0x57308c
mov edi, dword [esp + 0x20]
push 0x49
mov ecx, dword [edi + 0x100]
add ecx, 0x4588
call fcn.0058bbe0
mov ecx, dword [edi + 0x100]
mov ebp, eax
push 0x4a
jmp 0x57307f
mov ecx, dword [esp + 0x20]
mov ebp, 4
push 0x4a
mov ecx, dword [ecx + 0x100]
jmp 0x57307f
xor ebp, ebp
mov edi, 0x14
mov ecx, dword [esi + 0x134]
mov edx, dword [esi + 0x130]
mov ebx, dword [esp + 0x20]
sub ecx, edi
lea eax, [esi + 0x138]
sub edx, edi
mov dword [esi + 0x13c], ecx
push eax
mov ecx, ebx
mov dword [eax], edx
call fcn.00576620
mov ecx, dword [esi + 0x134]
mov edx, dword [esi + 0x130]
add ecx, edi
lea eax, [esi + 0x140]
add edx, edi
mov dword [esi + 0x144], ecx
push eax
mov ecx, ebx
mov dword [eax], edx
call fcn.00576620
mov ecx, dword [esi + 0x134]
mov edx, dword [esi + 0x130]
sub ecx, ebp
lea eax, [esi + 0x148]
sub edx, ebp
mov dword [esi + 0x14c], ecx
push eax
mov ecx, ebx
mov dword [eax], edx
call fcn.00576620
mov ecx, dword [esi + 0x134]
mov edx, dword [esi + 0x130]
add ecx, ebp
lea eax, [esi + 0x150]
add edx, ebp
mov dword [esi + 0x154], ecx
push eax
mov ecx, ebx
mov dword [eax], edx
call fcn.00576620
mov ebp, dword [esp + 0x190]
test ebp, ebp
je 0x573325
mov eax, dword [esi + 0x10c]
test eax, eax
jne 0x573325
mov ebp, dword [esp + 0x2c]
mov ecx, ebx
push ebp
call fcn.00576b50
mov edi, eax
test edi, edi
je 0x573325
cmp dword [esp + 0x30], 4
jne 0x573231
mov edx, dword [ebx + 0x115c]
mov eax, dword [ebx + 0x1160]
xor ecx, ecx
mov dword [ebx + 0x1164], edx
mov dword [ebx + 0x1168], eax
mov cl, byte [edi + 5]
xor edx, edx
mov dword [ebx + 0x115c], ecx
mov dl, byte [edi + 6]
mov dword [ebx + 0x1160], edx
mov al, byte [esp + 0x27]
push 0x80
test al, al
je 0x5732b4
call fcn.0061317d
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov dword [esp + 0x188], 0
je 0x57331a
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x80]
push ecx
push ebp
push 0x3f800000
push edx
push edx
xor edx, edx
mov dl, byte [edi + 6]
push 0x3f800000
mov dword [esp + 0x4c], edx
push ecx
fild dword [esp + 0x50]
xor ecx, ecx
mov cl, byte [edi + 5]
fadd dword [0x634598]
mov dword [esp + 0x50], ecx
fstp dword [esp]
fild dword [esp + 0x50]
push ecx
mov ecx, eax
fadd dword [0x634598]
fstp dword [esp]
call fcn.0040bd30
mov byte [edi + 4], 1
jmp 0x573c6c
call fcn.0061317d
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov dword [esp + 0x188], 1
je 0x57331a
lea edx, [esp + 0x80]
xor ecx, ecx
mov cl, byte [edi + 6]
push edx
mov edx, dword [esp + 0x44]
push ebp
push 0x3f800000
push edx
mov dword [esp + 0x44], ecx
push edx
fild dword [esp + 0x48]
push 0x3f800000
xor edx, edx
mov dl, byte [edi + 5]
push ecx
mov dword [esp + 0x50], edx
fstp dword [esp]
fild dword [esp + 0x50]
push ecx
mov ecx, eax
fstp dword [esp]
call fcn.0040bd30
mov byte [edi + 4], 1
jmp 0x573c6c
xor eax, eax
mov byte [edi + 4], 1
jmp 0x573c6c
mov eax, dword [ebx + 0x100]
mov ecx, dword [eax + 0xf0]
mov edx, dword [ecx + 0x8c]
mov ecx, dword [edx + 0x118]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0x10c]
test ecx, ecx
jne 0x573392
push 0xa8
lea ecx, [eax + 0x4588]
call fcn.0058bbe0
mov edi, eax
test edi, edi
jle 0x57336f
call fcn.006131bd
cdq
idiv edi
mov dword [esp + 0x4c], edx
jmp 0x573377
mov dword [esp + 0x4c], 0
mov ebp, dword [esi + 0x138]
or ecx, 0xffffffff
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ecx
jmp 0x5733c7
mov edx, dword [esi + 0x120]
mov ecx, dword [esi + 0x114]
mov eax, dword [esi + 0x110]
mov ebp, dword [esi + 0x11c]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x118]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ebp
or ecx, 0xffffffff
mov eax, dword [esi + 0x158]
lea edi, [esi + 0x158]
cmp eax, 8
je 0x5734e3
mov ecx, dword [esi + 0x13c]
mov eax, dword [esi + 0x138]
sub ecx, 2
lea edx, [esp + 0x64]
sub eax, 2
mov dword [esp + 0x68], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x68], eax
call fcn.00576620
mov ecx, dword [esi + 0x144]
mov eax, dword [esi + 0x140]
add ecx, 2
lea edx, [esp + 0x5c]
add eax, 2
mov dword [esp + 0x60], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x60], eax
call fcn.00576620
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x1b8]
mov edx, dword [esp + 0x18]
push edi
push eax
push ecx
lea eax, [esp + 0x68]
push edx
lea ecx, [esp + 0x74]
push eax
mov eax, dword [esp + 0x40]
lea edx, [esi + 0x130]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00574be0
test eax, eax
jne 0x5734e0
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x80]
push 0xff
lea ecx, [esi + 8]
push eax
push ecx
mov dword [esi], edx
call fcn.00613360
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x50]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x54]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x110], ecx
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x114], edx
mov edx, dword [esp + 0x19c]
add esp, 0xc
mov dword [esi + 0x118], eax
mov dword [esi + 0x10c], 1
mov dword [esi + 0x11c], ebp
mov dword [esi + 0x120], ecx
mov dword [esi + 0x124], edx
xor eax, eax
jmp 0x573c76
or ecx, 0xffffffff
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], 0
cmp eax, 4
je 0x5734fe
cmp eax, 3
je 0x5734fe
cmp eax, 0xc
jne 0x573506
mov dword [esp + 0x5c], 1
mov edx, dword [esi + 0x140]
mov dword [esp + 0x64], 1
cmp ebp, edx
jg 0x573a81
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x573541
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0x1b8]
mov ecx, dword [esp + 0x6c]
sub eax, edx
cmp eax, ecx
jae 0x573ac5
jmp 0x573549
mov dword [esp + 0x64], 0
mov edi, dword [esi + 0x13c]
mov eax, dword [esi + 0x144]
cmp edi, eax
mov dword [esp + 0x18], edi
jg 0x573a67
jmp 0x57356b
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
cmp dword [esp + 0x5c], 1
jne 0x57359e
cmp dword [esi + 0x148], ebp
jg 0x57359e
cmp ebp, dword [esi + 0x150]
jg 0x57359e
cmp dword [esi + 0x14c], edi
jg 0x57359e
cmp edi, dword [esi + 0x154]
jle 0x573a4c
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov cl, byte [esp + 0x27]
cdq
sub eax, edx
sar eax, 1
test cl, cl
mov ecx, dword [esp + 0x30]
je 0x5735ff
add ecx, 0xfffffffc
cmp ecx, 8
ja case.0x5735bb.5
jmp dword [ecx*4 + 0x573cb4]
mov edx, ebp
mov ecx, edi
sub edx, eax
sub ecx, eax
mov dword [esp + 0x38], edx
lea edx, [eax + ebp]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], edx
jmp 0x573645
mov ecx, ebp
mov edx, edi
sub ecx, eax
sub edx, eax
dec ecx
dec edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea ecx, [eax + ebp + 1]
lea edx, [eax + edi + 1]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jmp 0x57364b
add ecx, 0xfffffffc
cmp ecx, 8
ja case.0x573607.5
jmp dword [ecx*4 + 0x573cd8]
mov edx, ebp
mov ecx, edi
sub edx, eax
sub ecx, eax
mov dword [esp + 0x38], edx
lea edx, [eax + ebp - 1]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], edx
lea eax, [eax + edi - 1]
jmp 0x573647
mov ecx, ebp
mov edx, edi
sub ecx, eax
sub edx, eax
dec ecx
dec edx
mov dword [esp + 0x38], ecx
lea ecx, [eax + ebp]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x50], ecx
add eax, edi
mov dword [esp + 0x54], eax
lea edx, [esp + 0x38]
mov ecx, ebx
push edx
call fcn.00576620
cmp eax, 1
je 0x573a4c
lea eax, [esp + 0x50]
mov ecx, ebx
push eax
call fcn.00576620
cmp eax, 1
je 0x573a4c
mov ecx, dword [esp + 0x50]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
cmp eax, ecx
mov ebp, eax
jg 0x5736ec
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x5736db
mov edi, dword [esp + 0x3c]
cmp edi, eax
jg 0x5736d2
mov ebx, ecx
test ebx, ebx
jne 0x5736d2
push edi
push ebp
mov ecx, 0x770890
call fcn.00479df0
cmp eax, 0xff
jne 0x5736c5
mov ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x5736c9
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
inc edi
cmp edi, eax
jle 0x5736a3
mov ecx, dword [esp + 0x50]
inc ebp
cmp ebp, ecx
jle 0x573691
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
cmp eax, 1
je 0x573a4c
mov eax, dword [esp + 0x30]
cmp eax, 4
jne 0x5737ee
mov eax, dword [ebx + 0x115c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
lea edi, [ebx + 0x115c]
cmp eax, 0xffffffff
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
je 0x57373a
lea eax, [esp + 0x74]
push 0
push eax
push edi
mov ecx, ebx
call fcn.005766a0
test eax, eax
jne 0x57373a
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x74]
push ecx
push edi
mov ecx, ebx
call fcn.005766f0
mov ebp, eax
mov edx, ebp
and edx, reloc.DPLAYX.dll_Ordinal_1
jns 0x573758
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
jne 0x573768
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
mov dword [esp + 0x10], eax
lea ecx, [ebx + 0x1164]
push edi
push ecx
mov ecx, ebx
call fcn.005766f0
cmp eax, ebp
jne 0x573786
mov eax, dword [esp + 0x10]
lea edx, [eax + eax*2]
mov dword [esp + 0x10], edx
mov eax, dword [ebx + 0x1160]
mov ecx, dword [esi + 0x134]
mov edi, dword [edi]
mov edx, dword [esi + 0x130]
sub eax, ecx
sub edi, edx
cdq
mov ecx, eax
mov eax, edi
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
jge 0x5737ca
cmp ebp, 1
je 0x5737be
cmp ebp, 5
jne 0x5738ea
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
jmp 0x5738e6
jle 0x5738ea
cmp ebp, 3
je 0x5737de
cmp ebp, 7
jne 0x5738ea
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax*2]
mov dword [esp + 0x10], ecx
jmp 0x5738ea
cmp eax, 1
je 0x573845
cmp eax, 2
je 0x573845
cmp eax, 0xb
je 0x573845
cmp eax, 6
je 0x573879
mov eax, dword [esp + 0x30]
cmp eax, 0xa
je 0x573879
cmp eax, 8
je 0x573879
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00576be0
cmp eax, 1
jne 0x573879
mov eax, 0x66666667
imul dword [esp + 0x10]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x573875
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push 0xa
push ecx
push edx
push eax
mov ecx, ebx
call fcn.00576be0
cmp eax, 1
jne 0x573879
mov eax, 0x66666667
imul dword [esp + 0x10]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x57388c
cmp eax, 2
je 0x57388c
cmp eax, 0xb
jne 0x5738ea
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x130]
mov ebp, dword [esi + 0x134]
sub eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, ebp
mov edx, ecx
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fsqrt
call fcn.0061318c
mov ecx, eax
sub ecx, 0xa
test ecx, ecx
jle 0x5738ea
mov eax, 0x66666667
imul ecx
sar edx, 1
mov ecx, dword [esp + 0x7c]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x10]
sub eax, edx
cmp eax, ecx
jle 0x5738ea
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
xor dl, dl
cmp ecx, eax
jne 0x5739a9
mov eax, dword [esi + 0x130]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
mov ecx, eax
sub ecx, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x134]
fild dword [esp + 0x14]
mov edi, ecx
sub edi, ebp
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x44]
fild dword [esp + 0x14]
sub eax, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
sub ecx, eax
faddp st(1)
fstp st(2)
fstp st(0)
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fxch st(1)
fsub st(1)
fxch st(1)
fstp st(0)
fcom dword [0x634cc8]
fnstsw ax
test ah, 0x41
jne 0x57399a
fcom dword [0x635270]
fnstsw ax
test ah, 1
je 0x57399a
fstp st(0)
call fcn.006131bd
and eax, reloc.DPLAYX.dll_Ordinal_1
jns 0x573995
dec eax
or eax, 0xfffffffe
inc eax
setne dl
jmp 0x5739a9
fcomp dword [0x634594]
fnstsw ax
test ah, 1
je 0x5739a9
mov dl, 1
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x5739c8
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jl 0x5739c8
jne 0x573a4c
test dl, dl
je 0x573a4c
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00576b90
test eax, eax
jne 0x573a4c
fild dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
push eax
push eax
push 1
fadd dword [0x634598]
push 1
push 1
push 1
push 1
lea eax, [esp + 0x74]
push 1
push eax
push ecx
mov eax, dword [ebx + 0x100]
mov edx, dword [ecx]
fstp dword [esp]
fild dword [esp + 0x50]
push ecx
mov dword [esp + 0x84], 0xffffffff
mov eax, dword [eax + 0xf0]
fadd dword [0x634598]
fstp dword [esp]
push eax
call dword [edx + 0x24]
test al, al
jne 0x573a4c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x144]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jle 0x573563
mov ebp, dword [esp + 0x28]
mov eax, dword [esi + 0x140]
inc ebp
cmp ebp, eax
mov dword [esp + 0x28], ebp
jle 0x57351c
mov eax, dword [esp + 0x30]
or ecx, 0xffffffff
cmp dword [esp + 0x1c], ecx
jne 0x573b44
cmp eax, 4
jne 0x573ab4
mov edx, dword [ebx + 0x115c]
mov eax, dword [ebx + 0x1160]
mov dword [ebx + 0x1164], edx
mov dword [ebx + 0x1168], eax
mov dword [ebx + 0x115c], ecx
mov dword [ebx + 0x1160], ecx
mov dword [esi + 0x10c], 0
xor eax, eax
jmp 0x573c76
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x80]
push 0xff
lea eax, [esi + 8]
push edx
push eax
mov dword [esi], ecx
call fcn.00613360
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x1a0]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x110], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0x108], edx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x114], ecx
mov ecx, dword [esp + 0x19c]
add esp, 0xc
mov dword [esi + 0x120], eax
mov dword [esi + 0x10c], 1
mov dword [esi + 0x118], edx
mov dword [esi + 0x11c], ebp
mov dword [esi + 0x124], ecx
xor eax, eax
jmp 0x573c76
cmp eax, 4
jne 0x573b75
mov ecx, dword [ebx + 0x115c]
mov edx, dword [ebx + 0x1160]
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x1164], ecx
mov ecx, dword [esp + 0x48]
mov dword [ebx + 0x1168], edx
mov dword [ebx + 0x115c], eax
mov dword [ebx + 0x1160], ecx
mov eax, dword [esp + 0x190]
test eax, eax
jne 0x573bab
cmp dword [esi + 0x10c], 1
je 0x573bab
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
push 0
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00576900
mov eax, 1
jmp 0x573c6c
mov al, byte [esp + 0x27]
push 0x80
test al, al
je 0x573c19
call fcn.0061317d
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov dword [esp + 0x188], 2
je 0x573c6a
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x80]
fild dword [esp + 0x48]
push edx
push ecx
mov ecx, dword [esp + 0x48]
push 0x3f800000
fadd dword [0x634598]
push ecx
push ecx
push 0x3f800000
push ecx
fstp dword [esp]
fild dword [esp + 0x60]
push ecx
mov ecx, eax
fadd dword [0x634598]
fstp dword [esp]
call fcn.0040bd30
jmp 0x573c6c
call fcn.0061317d
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov dword [esp + 0x188], 3
je 0x573c6a
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x80]
fild dword [esp + 0x48]
push edx
push ecx
mov ecx, dword [esp + 0x48]
push 0x3f800000
push ecx
push ecx
push 0x3f800000
push ecx
fstp dword [esp]
fild dword [esp + 0x60]
push ecx
mov ecx, eax
fstp dword [esp]
call fcn.0040bd30
jmp 0x573c6c
xor eax, eax
mov dword [esi + 0x10c], 0
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x17c
ret 0x2c