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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xa0]
test eax, eax
push esi
push edi
mov byte [esp + 0x12], 0
je 0x52f10c
mov al, byte [ebp + 0xc]
test al, al
je 0x530689
mov eax, ebx
call fcn.00510f10
test al, al
je 0x530689
mov esi, dword [0x70ed7c]
cmp ebx, esi
jb 0x52f16c
mov eax, dword [0x70ed84]
imul eax, eax, 0xa8
add eax, esi
cmp ebx, eax
jae 0x52f16c
mov ecx, ebx
sub ecx, esi
mov eax, 0x30c30c31
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ax, 0xffff
je 0x52f16c
movsx ecx, ax
mov edx, ecx
sar edx, 5
lea eax, [edx*4 + 0x6d2edc]
and ecx, 0x1f
mov edx, 1
shl edx, cl
or dword [eax], edx
mov ax, word [ebx + 0x9c]
cmp ax, 0xffff
je 0x52f191
mov ecx, dword [ebp + 0xc]
movsx edx, ax
imul edx, edx, 0xa8
push ecx
add edx, esi
push edx
call fcn.0052f0e0
add esp, 8
cmp word [ebx + 0x14], 2
jne 0x52f3fe
mov edi, dword [ebx + 8]
cmp edi, dword [0x6db3f8]
mov dword [esp + 0x18], edi
je 0x52f3fe
mov al, byte [ebp + 0xc]
test al, al
jne 0x52f3fe
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 0x16
mov esi, ebx
push eax
mov dword [esp + 0x20], esi
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0xa8
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0x1b
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0xf
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 7
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 0xe
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 4
push 0x17
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0x3c
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x1ac]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 1
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 2
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 4
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 5
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 1
push 1
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 4
push 1
push eax
call dword [ecx + 0x10c]
mov ecx, dword [0x6db160]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x15c]
mov ecx, dword [0x697d10]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x170]
cmp dword [esi + 8], edi
jne 0x52f3fe
cmp word [esi + 0x14], 2
jne 0x52f3fe
mov eax, dword [esi + 0xc]
test eax, eax
je 0x52f33f
movsx ecx, word [eax + 0x24]
sub ecx, 5
je 0x52f32f
dec ecx
je 0x52f32f
dec ecx
jne 0x52f33f
mov al, byte [eax + 0x29]
shr al, 5
and al, 1
test al, al
jne 0x52f3c1
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x52f35a
mov ax, word [esi + 0x64]
test ax, ax
je 0x52f35a
mov word [esp + 0x24], ax
mov dword [esp + 0x20], ecx
jmp 0x52f36b
mov edx, dword [0x69052c]
mov word [esp + 0x24], 1
mov dword [esp + 0x20], edx
mov eax, dword [ebx]
shr eax, 8
not al
lea edi, [esp + 0x20]
and eax, 0xffffff01
push eax
call fcn.00514650
mov eax, dword [ebx]
add esp, 4
test ah, 1
je 0x52f39e
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x68]
mov eax, dword [eax + 0x6c]
call fcn.005225a0
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x52f3b1
mov ecx, dword [esi + 0x70]
push ecx
call fcn.005147f0
add esp, 4
push 0
mov ecx, esi
call fcn.0052eef0
mov edi, dword [esp + 0x1c]
add esp, 4
mov si, word [esi + 0x98]
mov ecx, dword [0x70ed84]
inc si
movsx eax, si
cmp eax, ecx
jge 0x52f3f0
mov edx, dword [0x70ed8c]
movsx esi, word [edx + eax*2]
mov eax, dword [0x70ed7c]
imul esi, esi, 0xa8
add esi, eax
jmp 0x52f3f2
xor esi, esi
test esi, esi
mov dword [esp + 0x14], esi
jne 0x52f305
call fcn.00515590
test al, al
je 0x52f5b1
test byte [ebx], 2
jne 0x52f611
cmp word [ebx + 0x14], 1
jne 0x52f5b1
mov eax, dword [ebx + 8]
cmp eax, dword [0x6db3f8]
mov dword [esp + 0x18], eax
je 0x52f5b1
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x52f5b1
cmp word [eax + 0x24], 4
jne 0x52f5b1
mov al, byte [ebp + 0xc]
test al, al
jne 0x52f5b1
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 0x16
push eax
mov edi, ebx
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0xa8
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0x1b
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0xf
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
mov esi, 1
push esi
push 7
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push esi
push 0xe
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 4
push 0x17
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0xffffffffffffffff
push 0x3c
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x1ac]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push esi
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 2
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 4
push 0
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 5
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push esi
push esi
push esi
push eax
call dword [edx + 0x10c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push esi
push 4
push esi
push eax
call dword [ecx + 0x10c]
lea ecx, [ecx]
mov edx, dword [edi + 8]
cmp edx, dword [esp + 0x18]
jne 0x52f59c
cmp word [edi + 0x14], si
jne 0x52f59c
mov eax, dword [edi + 0xc]
test eax, eax
je 0x52f58f
push edi
call fcn.0052efc0
add esp, 4
mov eax, edi
call fcn.00510e90
mov edi, eax
test edi, edi
jne 0x52f570
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 7
push 0xa8
push eax
call dword [ecx + 0xe4]
test byte [ebx], 2
jne 0x52f611
mov ecx, 1
cmp word [0x7b2aa0], cx
jne 0x52f611
mov al, byte [ebp + 0xc]
test al, al
jne 0x52f611
mov al, byte [0x68334a]
test al, al
je 0x52f5f5
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x52f611
cmp word [eax + 0x24], 4
jne 0x52f611
cmp word [ebx + 0x14], cx
jne 0x52f611
mov edx, dword [0x6db3f8]
cmp dword [ebx + 8], edx
jne 0x52f60c
jmp 0x52f611
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x52f60c
cmp word [ecx + 0x24], 8
je 0x52f611
call fcn.0053b6b0
test al, al
jne 0x52f611
call fcn.005155d0
mov esi, dword [ebx]
mov edx, esi
and edx, 2
jne 0x52f66f
mov edi, 1
cmp word [0x7b2aa0], di
jne 0x52f66f
cmp word [ebx + 0x14], di
jne 0x52f66f
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x52f66f
cmp word [eax + 0x24], 4
jne 0x52f66f
mov al, byte [ebp + 0xc]
test al, al
jne 0x52f66f
mov eax, ebx
call fcn.00510e90
test eax, eax
je 0x52f66a
cmp word [eax + 0x14], di
jne 0x52f66a
mov ecx, dword [eax + 8]
cmp ecx, dword [ebx + 8]
jne 0x52f66a
mov eax, dword [eax + 0xc]
test eax, eax
je 0x52f66a
cmp word [eax + 0x24], 4
je 0x52f66f
mov byte [esp + 0x12], 1
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x52f689
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x4c]
push edx
push eax
call dword [ebx + 0x48]
add esp, 8
jmp 0x5305f6
mov eax, dword [ebx + 0x58]
test eax, eax
mov dword [esp + 0x3c], 0xffffffff
je 0x52f6a2
mov cx, word [eax]
mov word [esp + 0x3c], cx
jmp 0x52f6b9
mov eax, dword [ebx + 0x54]
cmp eax, 0xffffffff
je 0x52f6b9
shl eax, 4
mov ax, word [eax + 0x6d3078]
mov word [esp + 0x3c], ax
test edx, edx
jne 0x52f721
mov ecx, dword [ebx + 0x60]
test ecx, ecx
je 0x52f6d4
mov ax, word [ebx + 0x64]
test ax, ax
je 0x52f6d4
mov word [esp + 0x24], ax
jmp 0x52f6e1
mov ecx, dword [0x69052c]
mov word [esp + 0x24], 1
mov edx, esi
shr edx, 8
not dl
lea edi, [esp + 0x20]
mov dword [esp + 0x20], ecx
and edx, 0xffffff01
push edx
call fcn.00514650
mov eax, dword [ebx]
add esp, 4
test ah, 1
je 0x52f711
mov esi, dword [ebx + 0x68]
mov eax, dword [ebx + 0x6c]
call fcn.005225a0
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x52f721
push eax
call fcn.005147f0
add esp, 4
test byte [ebx], 8
je 0x52f75c
cmp word [0x7b2aa0], 1
jne 0x52f742
push 0x45800000
push 0x3b800000
call fcn.00514a50
add esp, 8
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 7
push eax
call dword [ecx + 0xe4]
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x52f7c0
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 7
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0xe
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 4
push 0x17
push eax
call dword [edx + 0xe4]
mov ecx, dword [ebx + 0xc]
call fcn.0053b660
test al, al
je 0x52f7ab
call fcn.00515040
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x52f7c0
call fcn.00515090
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x52f7c0
mov eax, dword [esp + 0x2c]
lea esp, [esp]
cmp byte [ebx], 0
jns 0x52f833
cmp word [ebx + 0x14], 1
jne 0x52f7ec
test ax, ax
jg 0x530581
mov eax, dword [0x695f18]
mov ecx, dword [0x695f14]
push eax
push ecx
call fcn.00514a50
add esp, 8
jmp 0x52f83c
test ax, ax
jne 0x52f815
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x52f809
cmp word [eax + 0x24], 1
jne 0x52f809
test byte [eax + 0x28], 4
jne case.0x52f84d.2
mov eax, 3
call fcn.00514d10
jmp 0x52f83c
mov eax, 2
call fcn.00514d10
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 7
push eax
call dword [edx + 0xe4]
jmp 0x52f83c
test ax, ax
jg 0x530581
mov edi, dword [ebx + 0xc]
movsx eax, word [edi + 0x24]
dec eax
cmp eax, 0xa
ja case.0x52f84d.2
jmp dword [eax*4 + 0x530690]
movsx eax, word [ebx + 0x14]
dec eax
jne case.0x52f84d.2
mov al, byte [0x70eea0]
test al, al
jne 0x530689
push ebx
call fcn.00515a40
add esp, 4
jmp case.0x52f84d.2
cmp dword [edi + 0x58], 0xffffffff
je 0x52f88c
cmp word [edi + 0x5c], 2
mov byte [esp + 0x13], 1
jne 0x52f891
mov byte [esp + 0x13], 0
mov al, byte [edi + 0x28]
mov cl, byte [ebx]
shr al, 1
and al, 1
neg al
sbb eax, eax
and eax, 0xfffffffa
add eax, 0x60
test cl, 4
jne case.default.0x52f8b2
movsx ecx, word [edi + 0x2a]
cmp ecx, 7
ja case.default.0x52f8b2
jmp dword [ecx*4 + 0x5306bc]
add eax, 2
jmp case.default.0x52f8b2
add eax, 4
jmp case.default.0x52f8b2
add eax, 3
jmp case.default.0x52f8b2
inc eax
jmp case.default.0x52f8b2
add eax, 5
movsx esi, ax
shl esi, 5
add esi, 0x696cc0
mov dword [esp + 0x14], esi
je case.0x52f84d.2
cmp dword [esi], 0
je case.0x52f84d.2
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x52f9b1
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x52f9b1
push 0
mov esi, eax
call fcn.00514190
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
xor edx, edx
mov dl, byte [edi + 0x2e]
add esp, 4
and edx, 2
or edx, 1
push edx
push 1
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
xor edx, edx
mov dl, byte [edi + 0x2e]
and edx, 4
or edx, 2
shr edx, 1
push edx
push 2
push 0
push eax
call dword [ecx + 0x114]
mov dl, byte [edi + 0x2e]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
and dl, 1
neg dl
sbb edx, edx
add edx, 2
push edx
push 5
push 0
push eax
call dword [ecx + 0x114]
mov dl, byte [edi + 0x2e]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
and dl, 1
neg dl
sbb edx, edx
add edx, 2
push edx
push 6
push 0
push eax
call dword [ecx + 0x114]
mov dl, byte [edi + 0x2e]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
and dl, 1
neg dl
sbb edx, edx
add edx, 2
push edx
push 7
push 0
push eax
call dword [ecx + 0x114]
mov esi, dword [esp + 0x14]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 0x16
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 7
push 0xa8
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 0x1b
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0xf
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0x1c
push eax
call dword [ecx + 0xe4]
mov cx, word [edi + 0x2a]
call fcn.005140e0
test byte [ebx], 0x20
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x74], 0
mov dword [esp + 0xd8], 0x3f800000
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0x3f800000
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
je 0x52fba0
mov edx, dword [0x7b2b44]
mov eax, dword [0x7b2b50]
mov ecx, dword [0x7b2b5c]
mov dword [esp + 0x48], edx
mov edx, dword [0x7b2aa8]
mov dword [esp + 0x4c], eax
mov eax, dword [0x7b2b48]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x7b2b54]
mov dword [esp + 0x54], edx
mov edx, dword [0x7b2b60]
mov dword [esp + 0x58], eax
mov eax, dword [0x7b2aac]
mov dword [esp + 0x5c], ecx
mov ecx, dword [0x7b2b4c]
mov dword [esp + 0x60], edx
mov edx, dword [0x7b2b58]
mov dword [esp + 0x64], eax
mov eax, dword [0x7b2b64]
mov dword [esp + 0x68], ecx
mov ecx, dword [0x7b2ab0]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov al, byte [esp + 0x13]
test al, al
je 0x52fbe6
fld qword [0x7b2a80]
mov edx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x3c]
push ecx
mov ecx, dword [ebp + 8]
fstp dword [esp]
mov ecx, dword [ecx + 0x74]
push 0
push 0
push 0
push edx
lea esi, [edi + 0x60]
push eax
lea edi, [esp + 0x120]
lea ebx, [esp + 0x110]
call fcn.0053b6d0
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x2c]
add esp, 0x18
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
lea ecx, [esp + 0x4c]
push ecx
push 0x1a
push eax
call dword [edx + 0x178]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 4
lea ecx, [esp + 0xdc]
push ecx
push 0xd
push eax
call dword [edx + 0x178]
mov ecx, dword [0x6db178]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x15c]
mov ecx, dword [esi + 4]
mov ecx, dword [ecx*8 + 0x697c00]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x170]
mov eax, dword [esi]
mov edx, dword [eax]
push 3
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [edx + 0x100]
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
jbe 0x52fc82
mov eax, dword [esi]
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x104]
push 0
mov ecx, ebx
call fcn.0052eef0
mov eax, dword [esp + 0x2c]
add esp, 4
inc edi
cmp edi, eax
jb 0x52fc61
mov esi, dword [esi]
mov eax, dword [esi]
push esi
call dword [eax + 0x108]
jmp case.0x52f84d.2
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
call fcn.0052d760
add esp, 8
jmp case.0x52f84d.2
mov edx, dword [ebp + 0xc]
push edx
push ebx
call fcn.0052e2d0
add esp, 8
jmp case.0x52f84d.2
push ebx
call dword [0x7b0c50]
add esp, 4
jmp case.0x52f84d.2
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
mov si, word [edi + 0x8a]
xor edx, edx
mov dl, byte [edi + 0x28]
shr edx, 1
not edx
and edx, 2
or edx, 1
push edx
push 0x16
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 7
push 0xa8
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 0x1b
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 0xab
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0x18
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0x1c
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 1
push 0
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 2
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 6
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 7
push 0
push eax
call dword [edx + 0x114]
cmp si, 2
jne 0x52fdea
mov al, byte [0x7b2aa4]
test al, al
je 0x52fdc9
cmp word [0x7b2aa0], 1
je 0x52fdea
cmp dword [0x7b2a0c], 0xffff0101
jae case.0x52f84d.2
push 2
push ebx
call dword [0x7b2088]
add esp, 8
jmp case.0x52f84d.2
mov eax, dword [edi + 0x70]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x52fe2a
fld dword [0x66c40c]
fld dword [edi + 0x54]
fucompp
fnstsw ax
test ah, 0x44
jp 0x52fe2a
fld dword [0x66c40c]
fld dword [edi + 0x58]
fucompp
fnstsw ax
test ah, 0x44
jp 0x52fe2a
fld dword [0x66c40c]
fld dword [edi + 0x5c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x52fe37
push ebx
call dword [0x7b2084]
add esp, 4
or ecx, 0xffffffff
fld dword [edi + 0x8c]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
je 0x52fe5d
fld dword [edi + 0x9c]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jne 0x52fe91
cmp dword [edi + 0xb8], ecx
jne 0x52fe6b
cmp si, 2
jne 0x52fe91
test si, si
jne 0x52fe83
test byte [edi + 0x28], 8
jne 0x52fe7e
cmp dword [edi + 0xcc], ecx
jne 0x52fe83
mov esi, 1
push esi
push ebx
call dword [0x7b2088]
add esp, 8
or ecx, 0xffffffff
cmp dword [edi + 0x164], ecx
jne 0x52fea5
cmp dword [edi + 0x178], ecx
je case.0x52f84d.2
push ebx
call dword [0x7b2080]
add esp, 4
jmp case.0x52f84d.2
cmp dword [0x7b2a0c], 0xffff0101
jb case.0x52f84d.2
movsx eax, word [esp + 0x3c]
mov ecx, eax
sub ecx, 0
je 0x52fee4
sub ecx, 2
je 0x52fee4
sub ecx, 2
jne 0x52feec
mov dword [esp + 0x44], 1
jmp 0x52feec
mov dword [esp + 0x44], 0
xor ecx, ecx
cmp ecx, 0x697aa0
je case.0x52f84d.2
mov ecx, dword [0x697aa0]
test ecx, ecx
je case.0x52f84d.2
mov ecx, dword [0x70eda0]
mov edx, dword [ecx]
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x6db130]
push eax
push ecx
mov dword [esp + 0x24], 0x3f800000
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x28], 0x3f800000
call dword [edx + 0x15c]
movsx edx, word [esp + 0x44]
mov edx, dword [edx*8 + 0x697dc8]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x170]
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x52ffe7
mov eax, dword [eax + 4]
test eax, eax
je 0x52ffe7
mov cx, word [edi + 0xd8]
cmp cx, 1
jl 0x52ff8d
cmp cx, 4
jg 0x52ff8d
movsx ecx, cx
fld dword [eax + ecx*4 - 4]
fstp dword [esp + 0x1c]
mov cx, word [edi + 0xda]
cmp cx, 1
jl 0x52ffab
cmp cx, 4
jg 0x52ffab
movsx edx, cx
fld dword [eax + edx*4 - 4]
fstp dword [esp + 0x18]
mov cx, word [edi + 0xdc]
cmp cx, 1
jl 0x52ffc7
cmp cx, 4
jg 0x52ffc7
movsx ecx, cx
fld dword [eax + ecx*4 - 4]
jmp 0x52ffcb
fld dword [esp + 0x40]
mov cx, word [edi + 0xde]
cmp cx, 1
jl 0x52ffeb
cmp cx, 4
jg 0x52ffeb
movsx edx, cx
fld dword [eax + edx*4 - 4]
jmp 0x52ffef
fld dword [esp + 0x40]
fld dword [esp + 0x20]
mov al, byte [0x683313]
test al, al
je 0x5300ae
fstp st(0)
sub esp, 8
fstp st(0)
mov eax, 2
fld dword [0x68337c]
fdivr qword [0x7b2a80]
fstp qword [esp]
call fcn.004cacf0
fstp dword [esp + 0x1c]
fld dword [0x683380]
add esp, 8
fcomp dword [0x66c40c]
fnstsw ax
test ah, 1
jne 0x530041
mov eax, dword [0x683380]
mov dword [esp + 0x1c], eax
jmp 0x530049
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
fld dword [0x683384]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 1
jne 0x530068
mov edx, dword [0x683384]
mov dword [esp + 0x18], edx
jmp 0x530070
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
fld dword [0x683388]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 1
jne 0x53008b
fld dword [0x683388]
jmp 0x53008f
fld dword [esp + 0x14]
fld dword [0x68338c]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 1
jne 0x5300aa
fld dword [0x68338c]
jmp 0x5300ae
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fmul dword [edi + 0xa0]
fstp dword [esp + 0x30]
fld dword [esp + 0x18]
fmul dword [edi + 0xa4]
fstp dword [esp + 0x34]
fld dword [esp + 0x18]
fmul dword [edi + 0xa8]
fstp dword [esp + 0x38]
fmul dword [0x66c41c]
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
je 0x5300f3
fstp st(0)
fld dword [0x66c410]
fld dword [0x66c410]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
fdiv st(1)
mov eax, dword [esp + 0x38]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0x3f800000
mov ecx, dword [edi + 0x88]
mov dword [esp + 0x88], ecx
mov edx, dword [edi + 0x8c]
mov dword [esp + 0x8c], edx
mov eax, dword [edi + 0x90]
mov dword [esp + 0x90], eax
fstp dword [esp + 0x94]
mov ecx, dword [edi + 0x7c]
mov dword [esp + 0x98], ecx
mov edx, dword [edi + 0x80]
fstp st(0)
mov dword [esp + 0x9c], edx
mov eax, dword [edi + 0x84]
fstp dword [esp + 0xa4]
mov dword [esp + 0xa0], eax
mov ecx, dword [edi + 0x94]
mov dword [esp + 0xa8], ecx
mov edx, dword [edi + 0x98]
mov dword [esp + 0xac], edx
mov eax, dword [edi + 0x9c]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 0x3f800000
mov ecx, dword [edi + 0xac]
mov dword [esp + 0xb8], ecx
mov edx, dword [edi + 0xb0]
mov dword [esp + 0xbc], edx
mov eax, dword [edi + 0xb4]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0x3f800000
test byte [edi + 0x28], 4
je 0x53021a
fld dword [esp + 0x30]
mov dword [esp + 0xd4], 0xbf800000
fchs
fstp dword [esp + 0xc8]
fld dword [esp + 0x34]
fchs
fstp dword [esp + 0xcc]
fld dword [esp + 0x38]
fchs
fstp dword [esp + 0xd0]
jmp 0x530246
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], 0x3f800000
test byte [edi + 0x28], 8
je 0x5302ab
mov ecx, dword [edi + 0xb8]
fld dword [esp + 0xb8]
fmul dword [esp + 0x1c]
mov dword [esp + 0x84], ecx
mov edx, dword [edi + 0xbc]
mov dword [esp + 0xb4], edx
fstp dword [esp + 0xb8]
fld dword [esp + 0xbc]
fmul dword [esp + 0x1c]
fstp dword [esp + 0xbc]
fld dword [esp + 0xc0]
fmul dword [esp + 0x1c]
fstp dword [esp + 0xc0]
mov eax, dword [edi + 0xb8]
mov dword [esp + 0xc4], eax
jmp 0x5302f3
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x84], ecx
mov dword [esp + 0xb4], 0
mov edx, dword [edi + 0xac]
mov dword [esp + 0xb8], edx
mov eax, dword [edi + 0xb0]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xbc], eax
mov ecx, dword [edi + 0xb4]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edx
xor eax, eax
mov ax, word [ebx + 0x10]
push 0x697aa0
xor ecx, ecx
push eax
mov eax, dword [edi + 0x58]
push 1
push 0
call fcn.00514370
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
add esp, 0x10
push 1
push 1
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 2
push 0
push eax
call dword [edx + 0x114]
mov dl, byte [edi + 0x28]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
and dl, 0x10
neg dl
sbb edx, edx
add edx, 2
push edx
push 5
push 0
push eax
call dword [ecx + 0x114]
mov dl, byte [edi + 0x28]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
and dl, 0x10
neg dl
sbb edx, edx
add edx, 2
push edx
push 6
push 0
push eax
call dword [ecx + 0x114]
mov dl, byte [edi + 0x28]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
and dl, 0x10
neg dl
sbb edx, edx
add edx, 2
push edx
push 7
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [edi + 0x28]
not edx
and edx, 2
or edx, 1
push edx
push 0x16
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 7
push 0xa8
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 0x1b
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 0x13
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 0x14
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 0xab
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0xf
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0x1c
push eax
call dword [ecx + 0xe4]
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x128], edx
push 3
lea edx, [esp + 0x11c]
push edx
mov dword [esp + 0x144], eax
mov eax, dword [0x70eda0]
push 0xa
mov dword [esp + 0x124], 0x3f800000
mov dword [esp + 0x128], 0x3f800000
mov dword [esp + 0x12c], 0x3f800000
mov dword [esp + 0x130], 0x3f800000
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x178]
mov al, byte [0x683313]
test al, al
je 0x5304fc
cmp word [0x68333a], 0
je 0x5304fc
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0x1b
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 6
lea ecx, [esp + 0x7c]
push ecx
push 0
push eax
call dword [edx + 0x1b4]
mov eax, dword [0x697aa0]
mov edx, dword [eax]
push 3
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [edx + 0x100]
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
jbe 0x530556
mov eax, dword [0x697aa0]
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x104]
push 0
mov ecx, ebx
call fcn.0052eef0
mov eax, dword [esp + 0x2c]
add esp, 4
inc esi
cmp esi, eax
jb 0x530532
mov eax, dword [0x697aa0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x108]
jmp case.0x52f84d.2
call fcn.00527d50
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x2c]
inc eax
cmp ax, 2
mov dword [esp + 0x2c], eax
jl 0x52f7b8
test byte [ebx], 8
je 0x53059c
cmp word [0x7b2aa0], 1
jne 0x53059c
push 0
push 0
call fcn.00514a50
add esp, 8
cmp byte [ebx], 0
jns 0x5305b4
cmp word [ebx + 0x14], 1
jne 0x5305b4
push 0
push 0
call fcn.00514a50
add esp, 8
test dword [0x7b2964], 0x4000000
je 0x5305d5
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0xc3
push eax
call dword [edx + 0xe4]
test dword [0x7b2964], 0x2000000
je 0x5305f6
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0xaf
push eax
call dword [ecx + 0xe4]
mov al, byte [ebp + 0xc]
test al, al
jne 0x530606
mov edx, dword [ebx + 8]
mov dword [0x6db3f8], edx
mov ax, word [ebx + 0x9e]
cmp ax, 0xffff
je 0x530631
mov ecx, dword [ebp + 0xc]
mov esi, dword [0x70ed7c]
movsx edx, ax
imul edx, edx, 0xa8
push ecx
add edx, esi
push edx
call fcn.0052f0e0
add esp, 8
mov al, byte [esp + 0x12]
test al, al
je 0x530689
mov eax, dword [0x70ed88]
test ax, ax
jle 0x530689
mov esi, dword [0x70ed80]
add esi, 0x14
movzx edi, ax
nop
mov eax, dword [esi + 0x8c]
cmp eax, dword [ebx + 8]
jne 0x530680
cmp word [esi], 1
jne 0x530680
lea ecx, [esi - 0x14]
push 1
push ecx
call fcn.0052f0e0
add esp, 8
cmp word [0x68333a], 0
je 0x530680
mov byte [0x70eea0], 1
add esi, 0xa8
dec edi
jne 0x530650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret