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

Disassembly:
sub esp, 0x74
push ebx
mov ebx, ecx
mov dword [esp + 0x58], 1
push ebp
push esi
push edi
mov edx, dword [ebx + 4]
mov dword [esp + 0x1c], ebx
cmp dword [edx + 0xf8], 0
mov eax, dword [edx + 0x17f8]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x17fc]
mov dword [esp + 0x40], eax
je 0x528013
mov esi, dword [edx + 0x130]
mov edi, dword [edx + 0x134]
jmp 0x528024
xorps xmm0, xmm0
movlpd qword [esp + 0x78], xmm0
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
mov ebp, dword [ebx]
lea ebx, [edx + 0x1c0]
cmp dword [edx + 0xfc], 0
mov ecx, dword [edx + 0x110]
mov dword [esp + 0x58], 0
cmove ebx, dword [esp + 0x58]
mov eax, dword [ebp + 8]
mov ebp, dword [ebp + 0x10]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
test eax, eax
jne 0x528066
mov eax, dword [edx + 0x124]
test ebp, ebp
jne 0x528070
mov ebp, dword [edx + 0x128]
cmp dword [edx + 0x11c], 0
jbe 0x52808d
mov eax, dword [edx + 0x11c]
mov ebp, dword [edx + 0x118]
lea ebp, [eax + ebp]
shr ebp, 1
inc ebp
jmp 0x5280ad
cmp ecx, dword [edx + 0x114]
jne 0x5280a1
test ecx, ecx
je 0x5280a1
imul ebp, eax
imul ebp, ecx
jmp 0x5280a7
imul ebp, eax
shl ebp, 0xc
shr ebp, 3
add ebp, 0x40
mov eax, dword [esp + 0x3c]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x38], ebp
movlpd qword [esp + 0x68], xmm0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
test edi, edi
jne 0x528105
test esi, esi
jne 0x528105
mov ecx, dword [esp + 0x90]
mov esi, ecx
mov edi, dword [esp + 0x94]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x88], edi
jmp 0x52811e
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0x94]
mov dword [esp + 0x18], esi
mov eax, dword [ebx]
cmp dword [eax], 3
jne 0x528192
cmp edi, dword [edx + 0xf4]
ja 0x528172
jb 0x528137
cmp ecx, dword [edx + 0xf0]
jae 0x528172
lea edx, [esp + 0x78]
mov ecx, ebx
call fcn.00524a00
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
test eax, eax
je 0x5281a2
mov eax, dword [ebx + 4]
mov esi, dword [eax + 0xf0]
mov eax, dword [eax + 0xf4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x88], eax
jmp 0x5281a9
lea edx, [esp + 0x70]
mov ecx, ebx
call fcn.00524a00
test eax, eax
je 0x528192
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0xf0]
mov edi, dword [eax + 0xf4]
jmp 0x52819a
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x5283ba
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x58], eax
mov eax, dword [ecx]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x54], esi
lea esi, [eax - 1]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x30], eax
test esi, esi
js 0x5282b3
mov ecx, dword [ecx + 4]
lea eax, [esi + esi*2]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx]
and eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x528252
cmp dword [ecx + 0x10], 0
jbe 0x528252
cmp dword [esp + 0x28], 0
mov eax, dword [esp + 0x24]
ja 0x528222
test eax, eax
je 0x528235
mov edi, dword [ecx + 4]
cmp edi, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
ja 0x528252
jb 0x528235
cmp dword [ecx], eax
jae 0x528252
mov eax, dword [ecx + 4]
mov ebx, dword [esp + 0x1c]
cmp eax, dword [esp + 0x94]
jb 0x528266
ja 0x528252
mov eax, dword [esp + 0x90]
cmp dword [ecx], eax
jbe 0x528266
sub ecx, 0x18
sub esi, 1
jns 0x528203
mov eax, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x2c], eax
jmp 0x5282bd
test esi, esi
js 0x5282af
mov ecx, dword [esp + 0x3c]
lea eax, [esi + esi*2]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 4]
add edx, dword [ecx + eax*8 + 8]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + eax*8 + 0xc]
adc edx, dword [esp + 0x40]
xor esi, esi
mov dword [esp + 0x44], edx
mov edx, dword [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], eax
jmp 0x5282bd
mov eax, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x52832c
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov ebp, dword [esp + 0x90]
mov eax, dword [ecx]
and eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x528314
cmp dword [ecx + 0x10], 0
jbe 0x528314
test edx, edx
jne 0x5282ef
test ebx, ebx
je 0x5282fe
mov eax, dword [ecx + 4]
cmp eax, edx
ja 0x528314
jb 0x528301
cmp dword [ecx], ebx
jae 0x528314
jmp 0x528301
mov eax, dword [ecx + 4]
mov edi, dword [esp + 0x2c]
cmp eax, dword [esp + 0x94]
ja 0x52831c
jb 0x528314
cmp dword [ecx], ebp
ja 0x52831c
inc esi
add ecx, 0x18
cmp esi, edi
jl 0x5282d7
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp esi, dword [esp + 0x30]
jge 0x528365
mov eax, dword [esp + 0x34]
lea ecx, [esi + esi*2]
mov esi, dword [esp + 0x3c]
mov eax, dword [eax + 4]
add esi, dword [eax + ecx*8 + 8]
mov ebx, dword [eax + ecx*8 + 0xc]
adc ebx, dword [esp + 0x40]
mov dword [esp + 0x48], ebx
mov ebx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
jmp 0x528369
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x44]
jb 0x5283b6
mov ecx, dword [esp + 0x20]
ja 0x52837d
cmp esi, ecx
jb 0x5283b6
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x88], ecx
jmp 0x5283c1
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x88]
cmp esi, edx
jne 0x5283da
cmp ecx, edi
jne 0x5283da
add esi, 1
mov dword [esp + 0x18], esi
adc ecx, 0
mov dword [esp + 0x88], ecx
mov eax, dword [ebx + 4]
mov ebx, dword [esp + 0x90]
mov dword [eax + 0x1800], ebx
mov ebx, dword [esp + 0x94]
mov dword [eax + 0x1804], ebx
mov ebx, dword [esp + 0x1c]
cmp edi, ecx
ja 0x5287a7
jb 0x52840d
cmp edx, esi
jae 0x5287a7
mov esi, dword [esp + 0x74]
cmp esi, dword [esp + 0x7c]
ja 0x5287a7
mov edi, dword [esp + 0x70]
jb 0x52842f
cmp edi, dword [esp + 0x78]
ja 0x5287a7
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x90]
sub ecx, edx
mov edx, dword [esp + 0x94]
sbb edx, dword [esp + 0x14]
call fcn.00581000
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x88]
sbb edx, dword [esp + 0x14]
movsd qword [esp + 0x68], xmm0
call fcn.00581000
movsd xmm1, qword [esp + 0x68]
divsd xmm1, xmm0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
sub ecx, edi
sbb edx, esi
movsd qword [esp + 0x68], xmm1
call fcn.00581000
mulsd xmm0, qword [esp + 0x68]
call fcn.00580f50
mov ecx, dword [esp + 0x70]
mov esi, eax
mov eax, dword [esp + 0x74]
sub esi, ebp
mov edi, edx
sbb edi, 0
add esi, ecx
adc edi, eax
cmp edi, dword [esp + 0x7c]
jl 0x5284c3
mov edx, dword [esp + 0x78]
jg 0x5284b7
cmp esi, edx
jb 0x5284c3
mov edi, dword [esp + 0x7c]
mov esi, edx
sub esi, 1
sbb edi, 0
cmp edi, eax
jg 0x5284d1
jl 0x5284cd
cmp esi, ecx
jae 0x5284d1
mov esi, ecx
mov edi, eax
mov eax, dword [ebx + 4]
push dword [eax + 0x30]
mov eax, dword [eax + 8]
push edi
push esi
push ebx
call eax
add esp, 0x10
test eax, eax
jne 0x5287a7
mov ecx, ebx
call fcn.00524a60
test eax, eax
je 0x5287af
mov eax, dword [ebx + 4]
mov ecx, ebx
mov dword [eax + 0x1808], 0
call fcn.00524c40
test eax, eax
je 0x5287a7
mov eax, dword [ebx]
cmp dword [eax], 7
je 0x5287a7
mov eax, dword [ebx + 4]
cmp dword [eax + 0xe30], 0
je 0x5287b9
cmp dword [eax + 0xf0], 0
jne 0x528542
cmp dword [eax + 0xf4], 0
je 0x528571
mov ecx, dword [eax + 0xea8]
mov edx, 0
add ecx, dword [eax + 0xec0]
adc edx, dword [eax + 0xec4]
cmp edx, dword [esp + 0x88]
jb 0x528598
ja 0x52856a
cmp ecx, dword [esp + 0x18]
jb 0x528598
cmp dword [esp + 0x64], 0
jne 0x528598
cmp esi, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
jne 0x528583
cmp edi, esi
je 0x5287a7
test ebp, ebp
je 0x52858e
add ebp, ebp
jmp 0x528786
mov ebp, 0x10
jmp 0x528786
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x64], 0
cmp dword [eax + 0xec4], ebp
jb 0x5287a7
mov ebp, dword [eax + 0xec0]
ja 0x5285c2
cmp ebp, dword [esp + 0x10]
jb 0x5287a7
mov ebx, dword [esp + 0x94]
cmp ebx, dword [eax + 0xec4]
mov ebx, dword [esp + 0x1c]
ja 0x5286a6
jb 0x5285e8
cmp dword [esp + 0x90], ebp
jae 0x5286a6
cmp dword [eax], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x88], edx
jne 0x5287a7
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x5287a7
push dword [eax + 0x30]
lea eax, [esp + 0x7c]
push eax
push ebx
call ecx
add esp, 0xc
test eax, eax
jne 0x5287a7
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 0x14]
test dl, 7
jne 0x5287a7
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x78]
shl eax, 3
sub eax, edx
mov edx, 0xaaaaaaab
shr eax, 3
sub ecx, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x78], ecx
sbb eax, 0
lea ebp, [edx - 1]
sub ecx, esi
mov dword [esp + 0x7c], eax
mov ebx, eax
sbb ebx, edi
shld ebx, ecx, 1
add ecx, ecx
mov dword [esp + 0x68], ebx
mov eax, ecx
mul edx
mov eax, ecx
mov ecx, 0xaaaaaaab
mov esi, edx
mul ebp
mov edi, eax
mov ebp, edx
mov eax, ebx
mul ecx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x68]
mov edx, 0xaaaaaaaa
mul edx
add ecx, esi
adc ebx, 0
add edi, ecx
mov dword [esp + 0x68], edi
jmp 0x52875c
cmp dword [eax], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jne 0x5287a7
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x5287a7
push dword [eax + 0x30]
lea eax, [esp + 0x74]
push eax
push ebx
call ecx
add esp, 0xc
test eax, eax
jne 0x5287a7
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 0x14]
test dl, 7
jne 0x5287a7
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x70]
shl eax, 3
sub eax, edx
mov edx, 0xaaaaaaab
shr eax, 3
sub ecx, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x70], ecx
sbb eax, 0
lea ebp, [edx - 1]
sub ecx, esi
mov dword [esp + 0x74], eax
mov ebx, eax
sbb ebx, edi
shld ebx, ecx, 1
add ecx, ecx
mov dword [esp + 0x68], ebx
mov eax, ecx
mul edx
mov eax, ecx
mov ecx, 0xaaaaaaab
mov esi, edx
mul ebp
mov edi, eax
mov ebp, edx
mov eax, ebx
mul ecx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x68]
mov edx, 0xaaaaaaaa
mul edx
add ecx, esi
adc ebx, 0
add edi, ecx
mov dword [esp + 0x68], edi
mov esi, dword [esp + 0x74]
adc ebp, 0
mov dword [esp + 0x44], eax
xor eax, eax
mov ecx, dword [esp + 0x44]
add ebx, ebp
adc eax, eax
add ecx, ebx
mov ebx, dword [esp + 0x1c]
adc edx, eax
shrd ecx, edx, 1
shr edx, 1
mov dword [esp + 0x6c], edx
lea ebp, [ecx + 0x10]
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x88]
ja 0x5287a7
mov edx, dword [esp + 0x10]
jb 0x528411
cmp edx, dword [esp + 0x18]
jb 0x528411
mov eax, dword [ebx]
mov dword [eax], 6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x74
ret