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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x30]
test edx, edx
push esi
push edi
je 0x56613a
mov ecx, dword [ebx + 0x38]
mov eax, dword [ecx + 0x74c]
test eax, eax
je 0x566132
cmp eax, edx
jne 0x566132
mov eax, dword [eax + 0x18]
cmp eax, dword [edx + 0x18]
jne 0x566132
mov eax, dword [ebx + 0x128]
test ah, 0x10
jne 0x566132
mov eax, dword [ecx + 0x76c]
test eax, eax
je 0x566132
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
je 0x566132
mov eax, 1
jmp 0x566134
xor eax, eax
mov dword [ebx + 0x1f8], eax
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x200]
push eax
mov ecx, edi
mov dword [esp + 0x28], edi
call fcn.0055940c
mov ecx, ebx
call fcn.00565dcc
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x566164
mov ecx, ebx
call fcn.0055d81c
mov dword [esp + 0x54], eax
mov al, byte [ebx + 0xec]
test al, al
je 0x56617a
mov esi, dword [ebx + 0xe8]
jmp 0x56617c
xor esi, esi
test esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0xd0], 0
je 0x5661ca
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x5661ca
mov ecx, dword [eax + 0x50]
test ecx, ecx
jne 0x5661ca
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5661b0
mov dl, byte [eax]
xor cl, cl
cmp cl, dl
sbb eax, eax
neg eax
jmp 0x5661b2
xor eax, eax
mov ecx, dword [ebx + 0xe8]
lea edx, [esp + 0xd0]
push edx
push eax
push 0
push 1
call fcn.005aa1cc
test esi, esi
mov byte [esp + 0x1f], 0
mov dword [esp + 0xa0], 0
je 0x566216
mov ecx, esi
call fcn.005aaeac
cmp eax, 1
jne 0x566216
mov eax, dword [ebx + 0x310]
cmp eax, 3
je 0x5661fa
cmp eax, 2
jne 0x566216
mov ecx, esi
mov byte [esp + 0x1f], 1
call fcn.005aaeac
push 2
mov ecx, esi
mov dword [esp + 0xa4], eax
call fcn.005a989c
mov esi, dword [ebx + 0x30]
xor ecx, ecx
xor eax, eax
cmp esi, ecx
mov byte [esp + 0xe], 0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
je 0x56627b
cmp dword [ebx + 0x108], 1
jne 0x5662b3
fld dword [0x644b04]
fld dword [ebx + 0xf4]
fucompp
fnstsw ax
test ah, 0x44
jp 0x566276
fld dword [ebx + 0xf8]
fld qword [0x5f66c8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5662c3
mov byte [esp + 0xe], 0
mov eax, dword [ebx + 0x128]
shr eax, 8
test al, 1
jne 0x566393
lea ecx, [ebx + 0xf0]
push ecx
call fcn.005766ac
add esp, 4
test eax, eax
jne 0x566376
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebx + 0xf4], ecx
jne 0x566276
cmp dword [ebx + 0xf8], ecx
jne 0x566276
mov eax, dword [ebx + 0x128]
shr eax, 8
test al, 1
mov byte [esp + 0xe], 1
je 0x56627b
lea esp, [esp]
mov ecx, dword [ebx + 0x30]
call fcn.005c618c
cmp esi, dword [eax + 0xe0]
je 0x566276
mov ecx, esi
call fcn.005815fc
test eax, eax
je 0x566307
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x20]
mov al, byte [edx + 0x129]
test al, al
jne 0x566332
mov ecx, esi
call fcn.005815fc
test eax, eax
je 0x566326
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x368]
shr edx, 3
test dl, 1
jne 0x56633f
mov esi, dword [esi + 8]
test esi, esi
jne 0x5662dc
jmp 0x566276
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x20]
add eax, 0x134
jmp 0x56634a
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x20]
add eax, 0x1d4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x90], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x94], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
jmp 0x56627b
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x566393
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax]
push ecx
push edx
mov ecx, edi
call fcn.0063058c
mov eax, dword [ebx + 0x128]
test eax, 0x200800
mov ecx, dword [ebp + 0x14]
je 0x56645a
lea edx, [ebx + 0x140]
mov esi, dword [edx]
mov dword [esp + 0x60], esi
mov esi, dword [edx + 4]
mov dword [esp + 0x64], esi
mov esi, dword [edx + 8]
mov edx, dword [edx + 0xc]
shr eax, 8
test al, 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edx
jne 0x566407
test ecx, ecx
je 0x5663f0
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
jmp 0x566407
lea edx, [esp + 0x60]
push edx
mov eax, edx
push eax
lea ecx, [ebx + 0xf0]
push ecx
call fcn.00575aec
add esp, 0xc
mov eax, dword [ebx + 0x128]
mov ecx, dword [ebx + 0xdc]
mov edx, eax
and edx, 0x200000
sub edx, 0x200000
neg edx
sbb edx, edx
and eax, 0x800
sub eax, 0x800
inc edx
push edx
mov edx, dword [esp + 0x70]
neg eax
sbb eax, eax
inc eax
push eax
mov eax, dword [ebx + 0xe0]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x74]
push eax
push ecx
push edx
mov ecx, edi
call fcn.0055afdc
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x56649c
mov eax, dword [ebx + 0x128]
shr eax, 8
test al, 1
je 0x566479
mov ecx, ebx
call fcn.005627ac
test eax, eax
je 0x56649c
mov ecx, dword [ebx + 0x13c]
mov edx, dword [ebx + 0x134]
mov eax, dword [ebx + 0x138]
push ecx
mov ecx, dword [ebx + 0x130]
push edx
push eax
push ecx
mov ecx, edi
call fcn.0063058c
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
or esi, 0xffffffff
cmp ecx, eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x8c], esi
jne 0x5664c9
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x7c]
push ecx
push eax
mov ecx, ebx
call fcn.0055c4ec
mov eax, dword [ebx + 0x154]
test eax, eax
mov edx, dword [ebx + 0x138]
mov dword [esp + 0x18], edx
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], esi
mov dword [esp + 0x84], esi
je 0x566508
mov ecx, ebx
call fcn.0056015c
cmp dword [ebx + 0x154], eax
jle 0x566508
mov dword [ebx + 0x154], eax
mov esi, dword [ebx + 0x154]
push 0
push esi
mov ecx, ebx
call fcn.0055c58c
mov ecx, dword [ebx + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 8]
cmp ecx, eax
mov dword [esp + 0x74], ecx
jl 0x566534
mov dword [esp + 0x74], eax
mov dword [esp + 0x50], ecx
jg 0x566538
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x170]
mov edi, esi
cmp edi, eax
mov dword [esp + 0x28], edi
jge 0x566fb7
jmp 0x56655c
mov edi, dword [esp + 0x28]
jmp 0x56655c
mov eax, dword [ebx + 0x16c]
mov esi, dword [eax + edi*4]
lea ecx, [esp + 0xd4]
push ecx
push edi
mov ecx, ebx
mov dword [esp + 0x38], esi
call fcn.0055f65c
mov eax, dword [esi + 0x1c]
test eax, eax
mov dword [esp + 0x34], eax
je 0x5665a2
mov ecx, eax
mov eax, dword [esi + 4]
lea edx, [ecx + ecx*2]
mov ax, word [eax + edx*2 - 6]
cmp ax, 0xa
je 0x56659d
cmp ax, 0xd
jne 0x5665a2
dec ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0x18]
add ecx, edx
lea esi, [ecx + eax]
cmp esi, dword [ebx + 0x13c]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xb0], esi
jle 0x5665db
cmp edi, dword [ebx + 0x154]
jg 0x566f61
mov al, byte [esp + 0xe]
test al, al
mov byte [esp + 0xf], 0
je 0x566653
mov ecx, dword [ebx + 0x128]
shr ecx, 8
test cl, 1
je 0x566628
lea edx, [esp + 0x58]
push edx
mov eax, edx
push eax
lea ecx, [ebx + 0xf0]
push ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], esi
call fcn.005755dc
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x68]
add esp, 0xc
cmp eax, edx
jmp 0x56664c
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x566653
mov ecx, dword [ebx + 0x30]
call fcn.005c618c
mov ecx, dword [eax + 0x104]
test ecx, ecx
jne 0x566653
mov ecx, dword [ebx + 0x30]
call fcn.005c619c
cmp esi, dword [eax + 0x68]
jge 0x566653
mov byte [esp + 0xf], 1
mov ecx, dword [esp + 0x34]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x14], eax
jle 0x566dc4
jmp 0x566681
mov eax, dword [esp + 0x14]
mov cl, byte [ebx + 0x161]
xor edx, edx
test cl, cl
mov dword [esp + 0x70], eax
mov dword [esp + 0x4c], edx
je 0x5666c1
mov ecx, dword [ebx + 0x1f8]
test ecx, ecx
je 0x5666c1
mov ecx, dword [esp + 0x78]
cmp ecx, dword [esp + 0x28]
jne 0x5666c1
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x3c]
add ecx, esi
lea esi, [ecx - 1]
mov dword [esp + 0x74], esi
mov dword [esp + 0x50], ecx
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x88], 0xffffffff
jge 0x566dc4
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 4]
lea edi, [eax + esi]
lea esi, [eax + eax*2]
shl esi, 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edi
lea esi, [esi + ecx - 6]
jmp 0x5666ff
mov edx, dword [esp + 0x4c]
cmp word [esi + 6], 9
jne 0x566722
test byte [ebx + 0x128], 0x10
jne 0x566722
cmp edx, 2
je 0x5667d6
mov dword [esp + 0x4c], 1
jmp 0x566733
cmp edx, 1
je 0x5667d6
mov dword [esp + 0x4c], 2
movzx edx, word [esi + 8]
cmp edx, dword [esp + 0x44]
jne 0x5667a9
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 8]
jne 0x56674f
mov cl, byte [ebx + 0x161]
test cl, cl
je 0x566771
mov ecx, dword [esp + 0xa8]
test ecx, ecx
jne 0x566760
cmp edi, dword [esp + 0x74]
je 0x5667be
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jne 0x566771
cmp edi, dword [esp + 0x50]
je 0x5667cb
mov ecx, dword [esp + 0x54]
inc eax
inc edi
add esi, 6
cmp ecx, 8
jl 0x56679d
mov edx, dword [esp + 0x40]
movzx ecx, word [edx + 4]
mov edx, dword [ebx + 0x1d4]
imul ecx, ecx, 0x3c
cmp dword [ecx + edx + 8], 3
jne 0x56679d
cmp word [esi], 0x20
je 0x5667d6
cmp eax, dword [esp + 0x34]
jl 0x5666fb
jmp 0x5667d6
mov edx, dword [esp + 0x40]
lea ecx, [eax + eax*2]
movzx ecx, word [edx + ecx*2 + 2]
mov dword [esp + 0x88], ecx
jmp 0x5667d6
mov dword [esp + 0xa8], 1
jmp 0x5667d6
mov dword [esp + 0xa4], 1
cmp dword [esp + 0x70], eax
mov dword [esp + 0x14], eax
je 0x566da6
mov ecx, dword [esp + 0x74]
fld qword [0x5f71d0]
mov edx, dword [esp + 0x48]
fstp qword [esp + 0x60]
cmp edx, ecx
mov dword [esp + 0x10], 0
jl 0x56681a
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
add esi, eax
cmp esi, dword [esp + 0x50]
jg 0x56681a
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
mov edi, dword [ebx + 4]
sub esi, eax
cmp edi, dword [ebx + 8]
mov dword [esp + 0x48], esi
je 0x56686a
cmp edx, ecx
jne 0x56686a
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x94], 1
call fcn.005618bc
fst qword [esp + 0x60]
call fcn.00632d5c
mov edx, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], edx
test byte [ebx + 0x128], 0x10
je 0x5668c9
lea esi, [esi + esi*2]
shl esi, 1
push esi
call fcn.0071528c
add esp, 4
test eax, eax
mov dword [esp + 0x38], eax
je 0x566da6
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov ecx, esi
mov esi, dword [eax + 4]
mov eax, ecx
add esi, edx
mov edx, dword [esp + 0x38]
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x48]
test ecx, ecx
jle 0x5668da
mov eax, edx
mov edi, edi
mov word [eax], 0x2a
add eax, 6
dec ecx
jne 0x5668bc
jmp 0x5668da
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
add eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov edx, eax
test edx, edx
je 0x566da6
fld qword [0x5f71d0]
fld qword [esp + 0x60]
fucompp
fnstsw ax
test ah, 0x44
jp 0x566910
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push edx
push eax
mov ecx, ebx
call fcn.005618bc
fstp qword [esp + 0x60]
mov eax, dword [esp + 0x44]
mov esi, dword [ebx + 0x1d0]
imul eax, eax, 0x74
mov ecx, dword [esp + 0x10]
add esi, eax
mov dword [esp + 0x40], eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0xac], eax
mov dword [esp + 0x20], eax
jne 0x56693e
test byte [esi + 0x54], 8
je 0x566964
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xac]
push ecx
push 0
push 0
push edx
push eax
mov ecx, ebx
call fcn.005618bc
call fcn.00632d5c
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x28]
push esi
call fcn.00631aec
mov eax, dword [esp + 0x10]
test eax, eax
je 0x566b08
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
add edx, eax
cmp edx, dword [esp + 0x50]
jge 0x5669a3
mov ecx, dword [esp + 0xe4]
add ecx, edi
mov dword [esp + 0xb0], ecx
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x5669bd
mov edx, dword [eax + 0x74c]
cmp edx, dword [ebx + 0x30]
mov dword [esp + 0x10], 0xff000000
je 0x5669c5
mov dword [esp + 0x10], 0xff555555
fld qword [esp + 0x60]
mov esi, dword [ebx + 0x158]
call fcn.00632d5c
mov ecx, dword [esp + 0xac]
sub eax, esi
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x20]
sub eax, esi
add eax, ecx
mov ecx, dword [esp + 0xb0]
lea edx, [esp + 0xbc]
mov dword [esp + 0xc0], eax
push edx
mov eax, edx
mov dword [esp + 0xcc], ecx
push eax
lea ecx, [ebx + 0x130]
push ecx
mov dword [esp + 0xd0], edi
call fcn.0057509c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xcc]
add esp, 0xc
push edx
mov edx, dword [esp + 0xc8]
push eax
mov eax, dword [esp + 0xc4]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
call fcn.0055af2c
cmp dword [esp + 0x4c], 2
mov esi, dword [esp + 0x2c]
jne 0x566bce
mov al, byte [esp + 0xf]
test al, al
jne 0x566bce
test esi, esi
mov dword [esp + 0x10], 2
je 0x566aae
mov ecx, esi
call fcn.005aaeac
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
mov ecx, dword [ebx + 0x1d4]
mov dword [esp + 0x10], eax
movzx eax, word [edx + 4]
imul eax, eax, 0x3c
mov edx, dword [eax + ecx + 8]
test edx, edx
je 0x566aae
cmp dword [esp + 0x10], 1
jne 0x566aae
push 2
mov ecx, esi
call fcn.005a989c
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x566aba
mov eax, dword [eax + 0x50]
jmp 0x566abc
xor eax, eax
mov edx, dword [esp + 0x48]
fild dword [ebx + 0x158]
mov ecx, dword [esp + 0xd8]
push eax
fsubr qword [esp + 0x64]
push esi
or eax, 0xffffffff
push eax
mov eax, dword [esp + 0x44]
push edx
push eax
add ecx, edi
push ecx
mov ecx, dword [esp + 0x3c]
sub esp, 8
fstp qword [esp]
call fcn.0055a67c
test esi, esi
je 0x566bce
mov edx, dword [esp + 0x10]
push edx
mov ecx, esi
call fcn.005a989c
jmp 0x566bce
mov eax, dword [esp + 0x4c]
mov edi, 2
cmp eax, edi
jne 0x566bc6
mov al, byte [esp + 0xf]
test al, al
jne 0x566bc6
mov esi, dword [esp + 0x2c]
test esi, esi
mov dword [esp + 0x10], edi
je 0x566b64
mov ecx, esi
call fcn.005aaeac
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
movzx ecx, word [edx + 4]
mov edx, dword [ebx + 0x1d4]
imul ecx, ecx, 0x3c
cmp dword [ecx + edx + 8], 0
mov dword [esp + 0x10], eax
je 0x566b64
cmp eax, 1
jne 0x566b64
push edi
mov ecx, esi
call fcn.005a989c
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x566b70
mov ecx, dword [eax + 0x50]
jmp 0x566b72
xor ecx, ecx
mov eax, dword [ebx + 0x1d0]
fild dword [ebx + 0x158]
mov edx, dword [esp + 0x40]
mov eax, dword [eax + edx + 0x58]
mov edi, dword [esp + 0x18]
fsubr qword [esp + 0x60]
mov edx, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0x3c]
push esi
push eax
mov eax, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x38]
add edx, edi
push edx
sub esp, 8
fstp qword [esp]
call fcn.0055a67c
test esi, esi
je 0x566bce
mov eax, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.005a989c
jmp 0x566bce
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
test byte [ebx + 0x128], 0x10
je 0x566be4
mov ecx, dword [esp + 0x38]
push ecx
call fcn.007152ac
add esp, 4
mov eax, dword [esp + 0x40]
mov edx, dword [ebx + 0x1d0]
lea ecx, [edx + eax]
test byte [ecx + 0x54], 8
je 0x566c54
mov eax, dword [esp + 0xdc]
mov esi, dword [ebx + 0x158]
cdq
sub eax, edx
mov edx, dword [esp + 0xd8]
sar eax, 1
add eax, edx
mov edx, dword [ebx + 0x134]
add eax, edi
mov edi, dword [ecx + 0x58]
mov ecx, dword [esp + 0x20]
sub ecx, esi
cmp edx, ecx
jge 0x566c29
mov ecx, edx
mov edx, dword [esp + 0x24]
fld qword [esp + 0x60]
mov edx, dword [edx]
push 0
push edi
push eax
push ecx
push eax
mov dword [esp + 0x34], edx
call fcn.00632d5c
mov ecx, dword [esp + 0x38]
sub eax, esi
push eax
mov eax, dword [esp + 0x38]
call dword [eax + 4]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x566da6
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + 4]
mov eax, dword [ebx + 0x1d4]
imul edx, edx, 0x3c
mov ecx, dword [edx + eax + 0x2c]
test ecx, ecx
je 0x566da6
mov eax, dword [esp + 0x28]
test eax, eax
je 0x566cb4
mov ecx, dword [ebx + 0x16c]
mov ecx, dword [ecx + eax*4 - 4]
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x566cb4
lea edx, [eax + eax*2]
mov eax, dword [ecx + 4]
mov ax, word [eax + edx*2 - 6]
cmp ax, 0xa
je 0x566cb4
cmp ax, 0xd
jne 0x566da6
push 0
push 0x168
mov ecx, ebx
call fcn.0055f4ac
fld qword [esp + 0x60]
mov edi, eax
call fcn.00632d5c
mov edx, dword [ebx + 0x158]
mov ecx, dword [esp + 0x30]
sub eax, edx
sub eax, edi
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
mov edx, dword [eax]
xor ecx, ecx
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x54]
mov ax, word [eax + 4]
cmp edx, 6
setl cl
mov word [esp + 0xb8], ax
mov eax, dword [ebx + 0x2c]
dec ecx
and ecx, 0x1f8d
add ecx, 0x95
test eax, eax
mov word [esp + 0xb4], cx
jne 0x566d26
mov ecx, ebx
call fcn.0055d81c
cmp eax, 8
jl 0x566d65
mov eax, dword [esp + 0x88]
cmp eax, 0xffffffff
jne 0x566d56
cmp dword [esp + 0x44], 0xffffffff
jne 0x566d46
mov eax, dword [ebx + 0xc0]
jmp 0x566d6a
mov edx, dword [ebx + 0x1d0]
mov eax, dword [esp + 0x40]
mov eax, dword [edx + eax + 0x58]
jmp 0x566d6a
mov ecx, dword [ebx + 0x1d0]
imul eax, eax, 0x74
mov eax, dword [eax + ecx + 0x58]
jmp 0x566d6a
mov eax, 0xff000000
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x566d76
mov ecx, dword [ecx + 0x50]
jmp 0x566d78
xor ecx, ecx
fild dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push eax
mov eax, dword [esp + 0xe4]
push 1
lea edx, [esp + 0xc4]
push edx
add eax, ecx
mov ecx, dword [esp + 0x38]
push eax
sub esp, 8
fstp qword [esp]
call fcn.0055a67c
mov eax, dword [esp + 0x88]
cmp eax, 0xffffffff
je 0x566db6
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x14], edx
jl 0x56667d
mov eax, dword [ebx + 0x128]
test al, 8
jne 0x566eab
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
jne 0x566eab
test eax, 0x10000
jne 0x566eab
mov al, byte [ebx + 0x161]
test al, al
jne 0x566eab
mov eax, dword [ebx + 0x1f8]
test eax, eax
je 0x566eab
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x78], eax
jne 0x566eab
mov ecx, dword [esp + 0x8c]
mov edi, dword [ebx + 0x134]
mov esi, dword [ebx + 0x130]
push 0
push 0
push 0
push ecx
mov edx, eax
push edx
mov ecx, ebx
call fcn.005618bc
call fcn.00632d5c
sub eax, dword [ebx + 0x158]
cmp esi, eax
jg 0x566e47
mov esi, eax
cmp esi, edi
jl 0x566e4d
mov esi, edi
cmp dword [esp + 0x54], 9
jl 0x566e5c
mov eax, dword [ebx + 0xc0]
jmp 0x566e7a
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
jne 0x566e6d
mov eax, dword [ebx + 0xc0]
jmp 0x566e7a
mov ecx, dword [ebx + 0x1d0]
imul eax, eax, 0x74
mov eax, dword [eax + ecx + 0x58]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [esp + 0xd4]
push eax
push esi
push edi
push esi
call dword [edx + 4]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], 1
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xe4]
mov ecx, dword [ebx + 0x13c]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x18], eax
jg 0x566f61
mov al, byte [esp + 0xe]
test al, al
je 0x566f39
mov ecx, dword [ebx + 0x128]
shr ecx, 8
test cl, 1
je 0x566f16
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x58]
push eax
mov ecx, eax
mov dword [esp + 0x60], edx
push ecx
lea edx, [ebx + 0xf0]
push edx
mov dword [esp + 0x64], 0
call fcn.005755dc
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x68]
add esp, 0xc
cmp ecx, eax
jmp 0x566f37
mov ecx, dword [ebx + 0x30]
call fcn.005c618c
mov ecx, dword [eax + 0x104]
test ecx, ecx
jne 0x566f39
mov ecx, dword [ebx + 0x30]
call fcn.005c619c
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x6c]
jg 0x566f61
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x1c]
mov esi, dword [esp + 0x3c]
mov ecx, dword [ebx + 0x170]
add esi, eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], eax
jl 0x56654e
mov eax, dword [esp + 0x80]
test eax, eax
je 0x566fb7
mov ecx, dword [ebx + 0x30]
test ecx, ecx
mov byte [ebx + 0x160], 1
mov eax, 4
je 0x566f86
call fcn.005c619c
mov eax, dword [eax]
mov edx, dword [esp + 0x24]
lea ecx, [ebx + 0x68]
push ecx
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x84]
push eax
lea eax, [ebx + 0xf0]
push eax
push ecx
push edx
push ebx
call fcn.0063128c
add esp, 0x1c
mov byte [ebx + 0x160], 0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov al, byte [esp + 0x1f]
test al, al
je 0x566fd9
mov ecx, dword [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.005a989c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10