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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5e0a21
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0052c760
mov esi, eax
xor edi, edi
mov dword [esp + 0x3c], eax
cmp esi, edi
je 0x52e78f
test byte [ebp + 8], 3
je 0x52ecaf
cmp esi, edi
jle 0x52e736
mov eax, dword [ebx]
mov edx, dword [eax + 0x60]
mov ecx, esi
shl ecx, 4
push ecx
mov ecx, ebx
call edx
mov dword [esp + 0x28], eax
jmp 0x52e73a
mov dword [esp + 0x28], edi
xor eax, eax
mov dword [esp + 0x44], eax
test esi, esi
jle 0x52e77b
mov ecx, eax
shl ecx, 4
add ecx, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x240], 0
je 0x52e767
call fcn.00568b40
mov eax, dword [esp + 0x44]
inc eax
cmp eax, esi
mov dword [esp + 0x240], 0xffffffff
mov dword [esp + 0x44], eax
jl 0x52e744
cmp dword [esp + 0x28], 0
jne 0x52e796
push 0x304
call fcn.004fb6d0
add esp, 4
xor eax, eax
jmp 0x52ff21
mov eax, dword [ebp + 8]
shr eax, 1
and eax, 1
lea ecx, [esp + 0x188]
mov dword [esp + 0x40], eax
call fcn.00514e60
lea ecx, [esp + 0x1dc]
mov dword [esp + 0x240], 1
call fcn.004ee1e0
mov ecx, dword [ebx + 0xc]
mov eax, esi
shl eax, 4
test byte [eax + ecx - 0xe], 8
lea eax, [eax + ecx - 0x10]
mov byte [esp + 0x240], 2
je 0x52e7ee
sub eax, 0x10
dec esi
test byte [eax + 2], 8
jne 0x52e7e0
mov dword [esp + 0x3c], esi
movzx eax, word [ecx + 2]
test al, 8
je 0x52e804
mov edx, ecx
movzx eax, word [edx + 0x12]
add edx, 0x10
inc edi
test al, 8
jne 0x52e7f8
test eax, 0x800
je 0x52e865
fldz
mov edx, edi
shl edx, 4
fstp qword [esp + 0xbc]
lea eax, [edx + ecx]
mov ecx, dword [eax + 4]
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x80], edx
test byte [eax + 2], 8
mov dword [esp + 0x24], 1
je 0x52e850
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x28]
mov esi, 1
jmp 0x52e8e6
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov esi, 1
jmp 0x52e8e6
test al, 1
je 0x52f97a
mov esi, edi
lea eax, [esp + 0x188]
shl esi, 4
push eax
add ecx, esi
call fcn.00568e10
fldz
mov ecx, dword [esp + 0x194]
fstp qword [esp + 0xbc]
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x198]
add esi, eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov ecx, dword [esi + 0x2c]
push esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x30], ecx
mov ecx, esi
mov dword [esp + 0x28], 1
call fcn.004f45a0
inc edi
mov eax, edi
shl eax, 4
add eax, dword [ebx + 0xc]
lea ecx, [esi + 0x10]
push eax
call fcn.004f45a0
inc edi
mov eax, edi
shl eax, 4
add eax, dword [ebx + 0xc]
lea ecx, [esi + 0x20]
mov esi, 3
push eax
call fcn.004f45a0
inc edi
cmp edi, dword [esp + 0x3c]
mov dword [esp + 0x20], edi
jge 0x52ec41
jmp 0x52e900
mov edi, dword [esp + 0x20]
mov edx, dword [ebx + 0xc]
shl edi, 4
movzx eax, word [edi + edx + 2]
lea ecx, [edi + edx]
mov dword [esp + 0x34], eax
test eax, 0x800
je 0x52ed23
mov eax, dword [esp + 0x24]
lea eax, [esp + eax*8 + 0x7c]
push eax
mov dword [esp + 0x78], 1
call fcn.00568d70
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x1dc]
push eax
add ecx, edi
call fcn.00569120
test eax, eax
je 0x52e974
lea ecx, [esp + 0x1e0]
push ecx
mov ecx, dword [esp + 0x28]
lea ecx, [esp + ecx*8 + 0x80]
call fcn.005b87c0
fmul st(0), st(0)
mov edx, dword [esp + 0x24]
fstp qword [esp + edx*8 + 0xbc]
jmp 0x52e990
test byte [esp + 0x34], 0x80
fldz
mov eax, dword [esp + 0x24]
fstp qword [esp + eax*8 + 0xbc]
je 0x52e990
mov dword [esp + 0x74], 0
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x88]
push ecx
call fcn.005288c0
add esp, 0x10
test eax, eax
je 0x52e9d0
mov edx, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x28]
add edx, edi
push edx
inc esi
call fcn.004f45a0
jmp 0x52ebb8
mov ecx, dword [esp + 0x28]
mov eax, esi
shl eax, 4
add eax, ecx
mov dword [esp + 0x30], eax
add eax, 0xfffffff0
test byte [eax + 2], 4
mov dword [esp + 0x44], eax
je 0x52eabd
lea ecx, [esp + 0x15c]
call fcn.00514e60
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x15c]
push edx
mov byte [esp + 0x244], 3
call fcn.00568e10
test eax, eax
je 0x52eaa4
mov eax, dword [esp + 0x180]
cmp eax, dword [esp + 0x184]
je 0x52eaa4
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xb8], edx
lea edx, [esp + 0xb4]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x80]
push edx
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa8], ecx
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x52eaa4
mov ecx, dword [ebx + 0xc]
test byte [edi + ecx + 2], 8
lea eax, [edi + ecx]
je 0x52ea90
mov ecx, dword [eax + 4]
jmp 0x52ea93
mov ecx, dword [eax + 0xc]
cmp dword [esp + 0x2c], ecx
je 0x52eaa4
mov ecx, dword [esp + 0x30]
push eax
inc esi
call fcn.004f45a0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x240], 2
call fcn.00514eb0
jmp 0x52ebb8
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
mov dword [esp + 0xa8], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x94], ecx
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x80]
push eax
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0xa0], edx
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x52eb7b
cmp dword [esp + 0x24], 2
jne 0x52eb7b
cmp dword [esp + 0x74], 0
je 0x52eb7b
mov edx, dword [esp + 0x28]
lea eax, [esi - 2]
shl eax, 4
movsx eax, word [eax + edx + 2]
test eax, 0x800
je 0x52eb7b
test al, al
js 0x52eb7b
mov ecx, dword [ebx + 0xc]
lea eax, [edi + ecx]
dec esi
test byte [eax + 2], 8
mov dword [esp + 0x24], 1
je 0x52eb50
mov ecx, dword [eax + 4]
jmp 0x52eb53
mov ecx, dword [eax + 0xc]
cmp dword [esp + 0x2c], ecx
je 0x52ebb8
test byte [eax + 2], 8
je 0x52eb6d
mov eax, dword [eax + 4]
mov ecx, esi
shl ecx, 4
mov dword [ecx + edx - 4], eax
jmp 0x52ebb8
mov eax, dword [eax + 0xc]
mov ecx, esi
shl ecx, 4
mov dword [ecx + edx - 4], eax
jmp 0x52ebb8
mov eax, dword [esp + 0x44]
mov edx, 0x800
test word [eax + 2], dx
je 0x52ebb8
cmp dword [esp + 0x74], 0
je 0x52eba0
mov ecx, dword [ebx + 0xc]
add ecx, edi
push ecx
mov ecx, eax
call fcn.004f45a0
jmp 0x52ebb8
mov edx, dword [ebx + 0xc]
mov eax, dword [edi + edx + 4]
mov ecx, dword [esp + 0x30]
mov dword [ecx - 0xc], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [edi + eax + 8]
mov dword [ecx - 8], eax
test byte [esp + 0x34], 0x80
jne 0x52ec2f
mov ecx, dword [ebx + 0xc]
add ecx, edi
test byte [ecx + 2], 8
je 0x52ebcf
mov eax, dword [ecx + 4]
jmp 0x52ebd2
mov eax, dword [ecx + 0xc]
cmp dword [esp + 0x2c], eax
je 0x52ec2f
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x28], 1
call fcn.00568d70
fldz
mov eax, dword [ebx + 0xc]
fstp qword [esp + 0xbc]
add eax, edi
test byte [eax + 2], 8
je 0x52ec07
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
jmp 0x52ec0e
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x28]
mov ecx, esi
shl ecx, 4
test byte [ecx + edx - 0xe], 1
lea ecx, [ecx + edx - 0x10]
je 0x52ec2f
test byte [ecx + 2], 8
je 0x52ed1b
mov dword [ecx + 4], eax
inc dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x20], eax
jl 0x52e900
mov edi, dword [esp + 0x3c]
cmp esi, edi
jge 0x52ec6d
mov edx, dword [esp + 0x28]
mov ecx, esi
shl ecx, 4
mov eax, edi
lea ecx, [ecx + edx + 2]
sub eax, esi
lea ebx, [ebx]
xor edx, edx
mov word [ecx], dx
add ecx, 0x10
sub eax, 1
jne 0x52ec60
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov edx, dword [eax + 0x68]
push ecx
mov ecx, ebx
call edx
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x1dc]
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], eax
mov byte [esp + 0x240], 1
call fcn.004eeaf0
lea ecx, [esp + 0x188]
mov dword [esp + 0x240], 0xffffffff
call fcn.00514eb0
test byte [ebp + 8], 4
je 0x52f9b1
lea ecx, [esp + 0x1b4]
call fcn.005bbf60
lea ecx, [esp + 0x1b4]
push ecx
mov ecx, ebx
mov dword [esp + 0x244], 0x10
call fcn.0058b390
lea edx, [esp + 0x1b4]
push edx
mov ecx, ebx
call fcn.0058b830
mov ecx, ebx
call fcn.0052c760
mov dword [esp + 0x240], 0xffffffff
lea ecx, [esp + 0x1b4]
test eax, eax
jne 0x52f9ac
call fcn.005b9680
xor eax, eax
jmp 0x52ff21
mov dword [ecx + 0xc], eax
jmp 0x52ec2f
test al, 1
je 0x52f127
lea eax, [esp + 0x188]
push eax
call fcn.00568e10
lea ecx, [esp + 0x188]
call fcn.004f1980
test eax, eax
jne 0x52ed68
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x1ac]
jne 0x52ed68
cmp eax, dword [esp + 0x1b0]
jne 0x52ed68
add dword [esp + 0x20], 3
jmp 0x52ec33
mov ecx, dword [ebx + 0xc]
mov edx, dword [edi + ecx + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, esi
shl eax, 4
add eax, ecx
test byte [eax - 0xe], 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
je 0x52f076
lea ecx, [esp + 0x15c]
call fcn.00514e60
mov edx, dword [esp + 0x28]
lea eax, [esi - 3]
shl eax, 4
lea ecx, [eax + edx]
lea eax, [esp + 0x15c]
push eax
mov byte [esp + 0x244], 4
mov dword [esp + 0x38], ecx
call fcn.00568e10
mov ecx, dword [esp + 0x184]
mov eax, dword [esp + 0x1ac]
cmp ecx, eax
jne 0x52f01c
cmp eax, dword [esp + 0x1b0]
jne 0x52f01c
cmp dword [esp + 0x180], ecx
jne 0x52f01c
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x190]
push edx
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x52f01c
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x160]
call fcn.004efe90
push eax
lea ecx, [esp + 0xf0]
call fcn.005b88c0
lea ecx, [esp + 0xf4]
push ecx
lea ecx, [esp + 0x18c]
call fcn.004efe90
push eax
lea ecx, [esp + 0xe8]
call fcn.005b88c0
lea edx, [esp + 0xec]
push edx
lea eax, [esp + 0xe8]
push eax
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x52f01c
lea ecx, [esp + 0x15c]
call fcn.004f1980
lea ecx, [esp + 0x188]
mov dword [esp + 0x44], eax
call fcn.004f1980
mov ecx, dword [esp + 0x44]
sub ecx, eax
mov dword [esp + 0x44], ecx
jne 0x52ef5f
test byte [esp + 0x17c], 2
je 0x52eead
mov ecx, 2
jmp 0x52eeb8
movsx ecx, word [esp + 0x17c]
and ecx, 0xfffffffb
mov eax, dword [esp + 0x1a8]
test al, 2
je 0x52eeca
mov eax, 2
jmp 0x52eece
cwde
and eax, 0xfffffffb
cmp cx, ax
je 0x52ef0e
add esi, 0xfffffffd
test esi, esi
jne 0x52f060
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x28]
lea edx, [esp + 0x194]
push edx
call fcn.00568b90
lea ecx, [esp + 0x15c]
inc esi
mov byte [esp + 0x240], 2
call fcn.00514eb0
jmp 0x52f0f3
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x18c]
call fcn.004f11e0
test eax, eax
je 0x52f060
lea ecx, [esp + 0x188]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00568c30
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x15c]
mov dword [eax - 4], edx
mov byte [esp + 0x240], 2
call fcn.00514eb0
jmp 0x52f0f3
test byte [esp + 0x17c], 2
je 0x52ef70
mov edx, 2
jmp 0x52ef7b
movsx edx, word [esp + 0x17c]
and edx, 0xfffffffb
mov ecx, dword [esp + 0x1a8]
mov eax, ecx
and eax, 2
mov dword [esp + 0x74], eax
je 0x52ef94
mov eax, 2
jmp 0x52ef9a
movsx eax, cx
and eax, 0xfffffffb
cmp dx, ax
je 0x52efcf
cmp dword [esp + 0x44], 0
jge 0x52efcf
cmp word [esp + 0x74], 0
je 0x52efb5
mov eax, 2
jmp 0x52efbb
movsx eax, cx
and eax, 0xfffffffb
mov ecx, dword [esp + 0x17c]
and ecx, 4
or ecx, eax
mov word [esp + 0x17c], cx
lea edx, [esp + 0x194]
push edx
lea ecx, [esp + 0x160]
call fcn.004f1310
test eax, eax
je 0x52f01c
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x15c]
push eax
call fcn.00568c30
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [edx - 4], ecx
lea ecx, [esp + 0x15c]
mov byte [esp + 0x240], 2
call fcn.00514eb0
jmp 0x52f0f3
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x30]
add eax, edi
push eax
inc esi
call fcn.004f45a0
mov edx, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x28]
lea eax, [edi + edx + 0x10]
push eax
inc esi
call fcn.004f45a0
mov edx, dword [esp + 0x20]
add edx, 2
shl edx, 4
add edx, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x28]
push edx
inc esi
call fcn.004f45a0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x240], 2
call fcn.00514eb0
jmp 0x52f0f3
mov eax, dword [esp + 0x24]
fldz
mov ecx, dword [esp + 0x18c]
fstp qword [esp + eax*8 + 0xbc]
mov edx, dword [esp + 0x190]
mov dword [esp + eax*8 + 0x7c], ecx
mov dword [esp + eax*8 + 0x80], edx
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.005288c0
add esp, 0x10
test eax, eax
jne 0x52f0d2
mov edx, dword [esp + 0x30]
mov ecx, 0x800
test word [edx - 0xe], cx
je 0x52f0d2
dec esi
mov eax, dword [0x62d368]
mov ecx, dword [ebx + 0xc]
mov edx, esi
push eax
shl edx, 4
add edx, dword [esp + 0x2c]
add ecx, edi
push ecx
push edx
call fcn.005bd898
add esp, 0xc
add esi, 3
fldz
mov eax, dword [esp + 0x194]
mov ecx, dword [esp + 0x198]
fstp qword [esp + 0xbc]
add dword [esp + 0x20], 3
mov dword [esp + 0x24], 1
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
jmp 0x52ec33
test al, 8
je 0x52ec2f
lea ecx, [esp + 0x4c]
call fcn.00588510
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x4c]
push edx
add ecx, edi
mov byte [esp + 0x244], 5
call fcn.00569520
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
jge 0x52f763
mov eax, dword [esp + 0x68]
lea ecx, [eax + eax - 4]
mov eax, dword [esp + 0x70]
cmp ecx, eax
jle 0x52f767
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004fa0c0
add esp, 8
test eax, eax
jne 0x52f763
lea ecx, [esp + 0x4c]
call fcn.004c03a0
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
mov eax, dword [esp + 0x70]
cdq
fst qword [esp + 0x74]
sub eax, edx
fild dword [esp + 0x68]
sar eax, 1
mov dword [esp + 0x34], eax
sub esp, 0x10
fst qword [esp + 0x54]
fild dword [esp + 0x44]
fst qword [esp + 0x1c4]
fld st(2)
fmulp st(3)
fld st(0)
fadd st(2)
fxch st(2)
fsubrp st(1)
fst qword [esp + 0x44]
fmulp st(1)
fstp qword [esp + 8]
fstp qword [esp]
call fcn.004fa0e0
add esp, 0x10
test eax, eax
jg 0x52f498
test dword [esp + 0x64], 0xfffffffd
jne 0x52f24d
fld qword [esp + 0x44]
fld qword [esp + 0x74]
fmul st(1)
fdiv qword [esp + 0x34]
fdivp st(1)
fst qword [esp + 0x34]
fmul st(0), st(0)
fld1
fsubrp st(1)
call fcn.005bd8b0
fld qword [esp + 0x1b4]
sub esp, 0x10
fstp qword [esp + 8]
fmul qword [esp + 0x54]
fstp qword [esp]
call fcn.004fa0e0
add esp, 0x10
cmp eax, 1
jne 0x52f24d
fld1
fcomp qword [esp + 0x34]
fnstsw ax
test ah, 0x41
je 0x52f498
mov ecx, dword [ebx + 0xc]
movsx eax, word [edi + ecx - 0xe]
test al, al
jns 0x52f337
mov edx, dword [esp + 0x20]
add edx, 0xffffffff
jne 0x52f28f
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x28]
mov eax, esi
shl eax, 4
mov dword [eax + edx - 4], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + eax + 0xc]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
jmp 0x52f95c
lea ecx, [esp + 0x1b4]
call fcn.004ee1e0
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0x1b4]
push edx
lea ecx, [edi + eax - 0x10]
mov byte [esp + 0x244], 0xa
call fcn.00569120
lea ecx, [esp + 0x1c0]
push ecx
lea ecx, [esp + 0x130]
call fcn.00568b90
mov edx, dword [ebx + 0xc]
mov ecx, dword [edi + edx + 0xc]
lea eax, [edi + edx + 0xc]
mov dword [esp + 0x138], ecx
mov edx, dword [eax]
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x28]
lea eax, [esp + 0x12c]
push eax
mov byte [esp + 0x244], 0xb
mov dword [esp + 0x30], edx
inc esi
call fcn.004f45a0
lea ecx, [esp + 0x12c]
mov byte [esp + 0x240], 0xa
call fcn.0045c490
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x240], 5
call fcn.004eeaf0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
jmp 0x52f95c
test al, 4
je 0x52f46f
lea ecx, [esp + 0x15c]
call fcn.00514e60
mov edx, dword [ebx + 0xc]
lea ecx, [esp + 0x15c]
push ecx
lea ecx, [edi + edx - 0x10]
mov byte [esp + 0x244], 0xc
call fcn.00568e10
test eax, eax
mov eax, dword [esp + 0x70]
je 0x52f436
mov ecx, dword [esp + 0x184]
cmp dword [esp + 0x180], ecx
je 0x52f3fd
cmp ecx, eax
je 0x52f3fd
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x140]
call fcn.00568b90
mov ecx, dword [ebx + 0xc]
mov edx, dword [edi + ecx + 0xc]
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x28]
lea eax, [esp + 0x13c]
push eax
mov byte [esp + 0x244], 0xd
mov dword [esp + 0x14c], edx
inc esi
call fcn.004f45a0
lea ecx, [esp + 0x13c]
mov byte [esp + 0x240], 0xc
call fcn.0045c490
lea ecx, [esp + 0x15c]
mov byte [esp + 0x240], 5
call fcn.00514eb0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
jmp 0x52f95c
mov edx, dword [esp + 0x28]
mov ecx, esi
shl ecx, 4
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + eax + 0xc]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x15c]
mov byte [esp + 0x240], 5
call fcn.00514eb0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
jmp 0x52f95c
mov ecx, dword [esp + 0x28]
mov edx, esi
shl edx, 4
mov dword [edx + ecx - 4], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [edi + edx + 0xc]
lea ecx, [esp + 0x15c]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x240], 5
call fcn.00514eb0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
jmp 0x52f95c
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x28]
mov ecx, esi
shl ecx, 4
mov dword [ecx + eax - 4], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [edi + ecx + 0xc]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
jmp 0x52f95c
cmp dword [esp + 0x60], 0
jne 0x52f53c
mov eax, dword [esp + 0x24]
fldz
mov ecx, dword [esp + 0x50]
fstp qword [esp + eax*8 + 0xbc]
mov edx, dword [esp + 0x54]
mov dword [esp + eax*8 + 0x7c], ecx
mov dword [esp + eax*8 + 0x80], edx
neg eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.005288c0
add esp, 0x10
test eax, eax
jne 0x52f50f
mov eax, dword [esp + 0x28]
mov ecx, esi
shl ecx, 4
mov edx, 0x800
test word [ecx + eax - 0xe], dx
je 0x52f50f
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x70], ecx
jne 0x52f50f
dec esi
mov edx, dword [esp + 0x68]
lea eax, [edx + edx]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x28]
add eax, edi
push eax
inc esi
call fcn.004f45a0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
jmp 0x52f95c
cmp dword [esp + 0x40], 0
je 0x52f6f2
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
add edx, 0xfffffffd
cmp eax, edx
jge 0x52f6f2
mov ecx, dword [ebx + 0xc]
mov edx, 0x800
test word [edi + ecx + 0x12], dx
je 0x52f6f2
add eax, 2
mov dword [esp + 0x44], eax
shl eax, 4
mov dword [esp + 0x34], eax
mov eax, dword [eax + ecx]
mov ecx, eax
sar ecx, 0x10
test cl, 8
je 0x52f6f2
test eax, 0xffff
jne 0x52f6f2
xor eax, eax
lea ecx, [esp + 0x15c]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
call fcn.00588510
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0xac]
push edx
lea ecx, [edi + eax + 0x10]
mov byte [esp + 0x244], 0xe
call fcn.00568d70
lea ecx, [esp + 0x15c]
push ecx
mov ecx, dword [ebx + 0xc]
add ecx, dword [esp + 0x38]
call fcn.00569520
lea edx, [esp + 0x160]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1bc]
call fcn.004f5440
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x28]
mov ecx, esi
shl ecx, 4
add eax, edi
add ecx, edx
push eax
mov byte [esp + 0x244], 0xf
mov dword [esp + 0x34], ecx
call fcn.004f45a0
mov ecx, dword [esp + 0x30]
cmp dword [ecx + 0xc], 0xffffffff
mov eax, dword [esp + 0x70]
jne 0x52f631
mov edx, ecx
mov dword [edx + 0xc], eax
cmp eax, dword [esp + 0x180]
jne 0x52f652
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x1b8]
call fcn.004f5e90
test eax, eax
jne 0x52f669
mov ecx, dword [ebx + 0xc]
lea edx, [edi + ecx + 0x10]
inc esi
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x28]
push edx
call fcn.004f45a0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
inc esi
mov dword [esp + 0x20], eax
shl eax, 4
add eax, dword [ebx + 0xc]
mov ecx, esi
shl ecx, 4
lea edi, [ecx + edx]
push eax
mov ecx, edi
call fcn.004f45a0
inc dword [esp + 0x20]
cmp dword [edi + 0xc], 0xffffffff
jne 0x52f6a0
mov eax, dword [esp + 0x180]
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0x178]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x1b4]
inc esi
mov dword [esp + 0x24], 0
mov byte [esp + 0x240], 0xe
call fcn.004f54b0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x240], 5
call fcn.005885f0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x240], 2
call fcn.005885f0
jmp 0x52ec33
mov edx, dword [esp + 0x50]
fldz
mov eax, dword [esp + 0x54]
fstp qword [esp + 0xbc]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x28]
mov edx, esi
add eax, edi
shl edx, 4
lea edi, [edx + ecx]
push eax
mov ecx, edi
mov dword [esp + 0x28], 1
call fcn.004f45a0
cmp dword [edi + 0xc], 0xffffffff
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], edx
jne 0x52f74c
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], eax
lea ecx, [esp + 0x4c]
inc esi
mov byte [esp + 0x240], 2
call fcn.005885f0
jmp 0x52ec33
mov eax, dword [esp + 0x70]
mov ecx, dword [ebx + 0xc]
movsx ecx, word [edi + ecx - 0xe]
test cl, cl
jns 0x52f824
mov edx, dword [esp + 0x20]
add edx, 0xffffffff
je 0x52f93c
lea ecx, [esp + 0x1b4]
call fcn.004ee1e0
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0x1b4]
push edx
lea ecx, [edi + eax - 0x10]
mov byte [esp + 0x244], 6
call fcn.00569120
lea ecx, [esp + 0x1c0]
push ecx
lea ecx, [esp + 0x120]
call fcn.00568b90
mov edx, dword [ebx + 0xc]
mov ecx, dword [edi + edx + 0xc]
lea eax, [edi + edx + 0xc]
mov dword [esp + 0x128], ecx
mov edx, dword [eax]
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x28]
lea eax, [esp + 0x11c]
push eax
mov byte [esp + 0x244], 7
mov dword [esp + 0x30], edx
inc esi
call fcn.004f45a0
lea ecx, [esp + 0x11c]
mov byte [esp + 0x240], 6
call fcn.0045c490
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x240], 5
call fcn.004eeaf0
jmp 0x52f954
test cl, 4
je 0x52f93c
lea ecx, [esp + 0x15c]
call fcn.00514e60
mov edx, dword [ebx + 0xc]
lea ecx, [esp + 0x15c]
push ecx
lea ecx, [edi + edx - 0x10]
mov byte [esp + 0x244], 8
call fcn.00568e10
test eax, eax
mov eax, dword [esp + 0x70]
je 0x52f90e
mov ecx, dword [esp + 0x184]
cmp dword [esp + 0x180], ecx
je 0x52f8e0
cmp ecx, eax
je 0x52f8e0
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x110]
call fcn.00568b90
mov ecx, dword [ebx + 0xc]
mov edx, dword [edi + ecx + 0xc]
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x28]
lea eax, [esp + 0x10c]
push eax
mov byte [esp + 0x244], 9
mov dword [esp + 0x11c], edx
inc esi
call fcn.004f45a0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x240], 8
call fcn.0045c490
lea ecx, [esp + 0x15c]
mov byte [esp + 0x240], 5
call fcn.00514eb0
jmp 0x52f954
mov edx, dword [esp + 0x28]
mov ecx, esi
shl ecx, 4
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + eax + 0xc]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x15c]
mov byte [esp + 0x240], 5
call fcn.00514eb0
jmp 0x52f954
mov ecx, dword [esp + 0x28]
mov edx, esi
shl edx, 4
mov dword [edx + ecx - 4], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [edi + edx + 0xc]
lea ecx, [esp + 0x15c]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x240], 5
call fcn.00514eb0
jmp 0x52f954
mov edx, dword [esp + 0x28]
mov ecx, esi
shl ecx, 4
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + eax + 0xc]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x24], 0
mov byte [esp + 0x240], 2
call fcn.005885f0
jmp 0x52ec33
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x240], 1
call fcn.004eeaf0
lea ecx, [esp + 0x188]
mov dword [esp + 0x240], 0xffffffff
call fcn.00514eb0
xor eax, eax
jmp 0x52ff21
call fcn.005b9680
test byte [ebp + 8], 8
je 0x52f9cd
mov ecx, ebx
call fcn.0058b320
mov ecx, ebx
call fcn.0052c760
test eax, eax
je 0x52e78f
test dword [ebp + 8], 0x200
je 0x52f9ec
mov ecx, ebx
call fcn.0052cfb0
mov ecx, ebx
call fcn.0052c760
test eax, eax
je 0x52e78f
test dword [ebp + 8], 0x8000
je 0x52ff1c
mov ecx, ebx
xor edi, edi
call fcn.0052c760
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x52ff1c
mov ecx, dword [ebx + 0xc]
mov edx, eax
test byte [ecx + 2], 8
je 0x52fa1a
inc edi
add ecx, 0x10
sub edx, 1
jne 0x52fa13
test edi, edi
je 0x52ff1c
add edi, eax
mov dword [esp + 0x44], edi
test edi, edi
jle 0x52fa49
mov eax, dword [ebx]
mov edx, dword [eax + 0x60]
mov ecx, edi
shl ecx, 4
push ecx
mov ecx, ebx
call edx
mov dword [esp + 0x30], eax
jmp 0x52fa51
mov dword [esp + 0x30], 0
xor esi, esi
mov dword [esp + 0x34], esi
test edi, edi
jle 0x52fa93
jmp 0x52fa60
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x30]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x240], 0x11
je 0x52fa7f
call fcn.00568b40
inc esi
cmp esi, edi
mov dword [esp + 0x240], 0xffffffff
mov dword [esp + 0x34], esi
jl 0x52fa60
cmp dword [esp + 0x30], 0
je 0x52e782
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], eax
lea eax, [esi + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ecx
jmp 0x52fac0
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x40]
add eax, edx
test byte [eax + 2], 8
je 0x52fea7
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
je 0x52fea7
lea ecx, [esp + 0x4c]
call fcn.00588510
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [ebx + 0xc]
add ecx, edi
mov dword [esp + 0x244], 0x12
call fcn.00569520
mov edx, dword [ebx + 0xc]
add edi, edx
test dword [edi], 0xffff
jne 0x52fd41
movsx eax, word [esi - 0xe]
test eax, 0x800
je 0x52fd1f
test al, al
jns 0x52fd23
cmp dword [esp + 0x24], 2
jl 0x52fcee
mov edi, dword [esp + 0x50]
mov ecx, dword [esi - 0xc]
mov edx, dword [esi - 8]
mov dword [esp + 0x94], edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x98], edi
mov edi, dword [esi - 0x1c]
mov dword [esp + 0xa4], edi
mov edi, dword [esi - 0x18]
mov dword [esp + 0xa8], edi
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edx
test al, 8
jne 0x52fb7e
mov ecx, dword [esi - 4]
push 0
lea eax, [esp + 0x98]
push eax
lea edx, [esp + 0xac]
push edx
push ecx
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0xd0]
call fcn.00581210
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x240], 0x13
call fcn.004ee1e0
lea ecx, [esp + 0xbc]
mov byte [esp + 0x240], 0x14
call fcn.00581620
test eax, eax
je 0x52fcae
lea ecx, [esp + 0x1dc]
push ecx
lea ecx, [esp + 0xc0]
call fcn.00582760
test eax, eax
je 0x52fcae
lea edx, [esp + 0x1b4]
push edx
lea ecx, [esp + 0x50]
call fcn.00588620
push eax
lea eax, [esp + 0x1ec]
push eax
lea ecx, [esp + 0xfc]
call fcn.004f5440
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0xfc]
push edx
mov byte [esp + 0x248], 0x15
call fcn.004fa0c0
add esp, 8
test eax, eax
je 0x52fc44
lea eax, [esp + 0x100]
jmp 0x52fc58
lea ecx, [esp + 0xe4]
push ecx
lea ecx, [esp + 0xf8]
call fcn.004f54e0
push eax
mov ecx, esi
call fcn.00568b90
inc dword [esp + 0x24]
add dword [esp + 0x20], 0x10
mov eax, esi
add esi, 0x10
test byte [eax + 2], 8
je 0x52fc91
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0xf4]
mov dword [eax + 4], edx
mov byte [esp + 0x240], 0x14
call fcn.004f54b0
jmp 0x52fcc4
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0xf4]
mov byte [esp + 0x240], 0x14
call fcn.004f54b0
jmp 0x52fcc4
test byte [esi - 0xe], 8
je 0x52fcbd
mov edx, dword [esp + 0x70]
mov dword [esi - 0xc], edx
jmp 0x52fcc4
mov eax, dword [esp + 0x70]
mov dword [esi - 4], eax
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x240], 0x13
call fcn.004eeaf0
lea ecx, [esp + 0xbc]
mov byte [esp + 0x240], 0x12
call fcn.00581260
jmp 0x52fd02
test al, 8
je 0x52fcfb
mov ecx, dword [esp + 0x70]
mov dword [esi - 0xc], ecx
jmp 0x52fd02
mov edx, dword [esp + 0x70]
mov dword [esi - 4], edx
inc dword [esp + 0x24]
add dword [esp + 0x20], 0x10
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
add esi, 0x10
call fcn.00568f60
jmp 0x52fe91
test al, 1
je 0x52fd02
and eax, 8
je 0x52fd2d
mov ecx, dword [esi - 0xc]
jmp 0x52fd30
mov ecx, dword [esi - 4]
mov edx, dword [esp + 0x70]
cmp ecx, edx
je 0x52fd02
test eax, eax
je 0x52fcff
mov dword [esi - 0xc], edx
jmp 0x52fd02
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x160]
call fcn.00588550
movsx eax, word [edi + 0x12]
mov byte [esp + 0x240], 0x16
test eax, 0x800
je 0x52fdce
test al, al
js 0x52fd98
test al, 8
je 0x52fd72
mov edi, dword [edi + 0x14]
jmp 0x52fd75
mov edi, dword [edi + 0x1c]
cmp edi, dword [esp + 0x70]
jne 0x52fd98
inc dword [esp + 0x24]
add dword [esp + 0x20], 0x10
lea edx, [esp + 0x4c]
mov ecx, esi
push edx
add esi, 0x10
call fcn.00568f60
jmp 0x52fe7d
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x160]
call fcn.00588620
mov edi, dword [esp + 0x20]
push eax
mov ecx, edi
call fcn.00568b90
test byte [edi + 2], 8
je 0x52fe5b
mov ecx, dword [esp + 0x70]
mov dword [edi + 4], ecx
jmp 0x52fe62
test al, 1
je 0x52fe28
test byte [edi + 0x22], 8
je 0x52fddd
mov edi, dword [edi + 0x24]
jmp 0x52fde0
mov edi, dword [edi + 0x2c]
cmp edi, dword [esp + 0x70]
je 0x52fd7b
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x160]
call fcn.00588620
mov edi, dword [esp + 0x20]
push eax
mov ecx, edi
call fcn.00568b90
test byte [edi + 2], 8
je 0x52fe1a
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x4c]
mov dword [edi + 4], edx
push ecx
jmp 0x52fe67
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x4c]
mov dword [edi + 0xc], eax
push ecx
jmp 0x52fe67
test al, 8
je 0x52fe7d
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x160]
call fcn.00588620
mov edi, dword [esp + 0x20]
push eax
mov ecx, edi
call fcn.00568b90
test byte [edi + 2], 8
je 0x52fe5b
mov ecx, dword [esp + 0x70]
mov dword [edi + 4], ecx
jmp 0x52fe62
mov edx, dword [esp + 0x70]
mov dword [edi + 0xc], edx
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.00568f60
add dword [esp + 0x24], 2
add esi, 0x20
add edi, 0x20
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x15c]
mov byte [esp + 0x240], 0x12
call fcn.005885f0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x240], 0xffffffff
call fcn.005885f0
jmp 0x52febb
inc dword [esp + 0x24]
add dword [esp + 0x20], 0x10
mov ecx, esi
push eax
add esi, 0x10
call fcn.004f45a0
add dword [esp + 0x40], 0x10
sub dword [esp + 0x34], 1
jne 0x52fac0
mov edx, dword [ebx]
mov eax, dword [ebx + 0xc]
mov edx, dword [edx + 0x68]
push eax
mov ecx, ebx
call edx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
cmp edx, ecx
mov eax, dword [esp + 0x44]
mov dword [ebx + 0xc], 0
mov dword [ebx + 4], eax
jge 0x52ff0e
mov esi, dword [esp + 0x30]
mov eax, edx
shl eax, 4
lea eax, [eax + esi + 2]
sub ecx, edx
xor edx, edx
mov word [eax], dx
add eax, 0x10
sub ecx, 1
jne 0x52ff01
mov eax, dword [esp + 0x30]
mov ecx, ebx
mov dword [ebx + 0xc], eax
call fcn.0052e440
mov eax, 1
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.005bd2c6
mov esp, ebp
pop ebp
ret 4