Function at 0x527e30
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 0x527e73
mov esi, dword [edx + 0x130]
mov edi, dword [edx + 0x134]
jmp 0x527e84
xorps xmm0, xmm0
movlpd qword [esp + 0x78], xmm0
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
cmp dword [edx + 0xfc], 0
mov ebp, dword [ebx]
mov ecx, dword [edx + 0x110]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov eax, dword [ebp + 8]
mov ebp, dword [ebp + 0x10]
je 0x527eb3
lea ebx, [edx + 0x1c0]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x1c]
jmp 0x527ebb
mov dword [esp + 0x20], 0
test eax, eax
jne 0x527ec5
mov eax, dword [edx + 0x124]
test ebp, ebp
jne 0x527ecf
mov ebp, dword [edx + 0x128]
cmp dword [edx + 0x11c], 0
jbe 0x527eec
mov eax, dword [edx + 0x11c]
mov ebp, dword [edx + 0x118]
lea ebp, [eax + ebp]
shr ebp, 1
inc ebp
jmp 0x527f0c
cmp ecx, dword [edx + 0x114]
jne 0x527f00
test ecx, ecx
je 0x527f00
imul ebp, eax
imul ebp, ecx
jmp 0x527f06
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 0x527f64
test esi, esi
jne 0x527f64
mov ecx, dword [esp + 0x90]
mov esi, ecx
mov edi, dword [esp + 0x94]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x88], edi
jmp 0x527f7d
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 0x527ff1
cmp edi, dword [edx + 0xf4]
ja 0x527fd1
jb 0x527f96
cmp ecx, dword [edx + 0xf0]
jae 0x527fd1
lea edx, [esp + 0x78]
mov ecx, ebx
call fcn.00524800
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
test eax, eax
je 0x528001
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 0x528008
lea edx, [esp + 0x70]
mov ecx, ebx
call fcn.00524800
test eax, eax
je 0x527ff1
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0xf0]
mov edi, dword [eax + 0xf4]
jmp 0x527ff9
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x528223
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x24], 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 + 0x34], eax
test esi, esi
js 0x52811b
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 0x5280ba
cmp dword [ecx + 0x10], 0
jbe 0x5280ba
cmp dword [esp + 0x2c], 0
ja 0x528080
cmp dword [esp + 0x28], 0
jbe 0x528099
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x2c]
ja 0x5280ba
jb 0x52809c
mov edi, dword [ecx]
cmp edi, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
jae 0x5280ba
jmp 0x52809c
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x14]
cmp eax, dword [esp + 0x94]
jb 0x5280ce
ja 0x5280ba
mov eax, dword [ecx]
mov ebx, dword [esp + 0x1c]
cmp eax, dword [esp + 0x90]
jbe 0x5280ce
sub ecx, 0x18
sub esi, 1
jns 0x528062
mov eax, dword [esp + 0x34]
xor esi, esi
mov dword [esp + 0x30], eax
jmp 0x528125
test esi, esi
js 0x528117
mov ecx, dword [esp + 0x3c]
lea eax, [esi + esi*2]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov edi, dword [esp + 0x24]
mov ecx, dword [esi + 4]
add edi, dword [ecx + eax*8 + 8]
mov esi, dword [ecx + eax*8 + 0xc]
adc esi, dword [esp + 0x40]
mov dword [esp + 0x44], esi
mov esi, dword [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], esi
xor esi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], eax
jmp 0x528125
mov eax, dword [esp + 0x34]
xor esi, esi
mov dword [esp + 0x30], eax
test eax, eax
jle 0x528195
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov ebp, dword [esp + 0x90]
nop
mov eax, dword [ecx]
and eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x52817d
cmp dword [ecx + 0x10], 0
jbe 0x52817d
test edx, edx
jne 0x528158
test ebx, ebx
je 0x528167
mov eax, dword [ecx + 4]
cmp eax, edx
ja 0x52817d
jb 0x52816a
cmp dword [ecx], ebx
jae 0x52817d
jmp 0x52816a
mov eax, dword [ecx + 4]
mov edi, dword [esp + 0x30]
cmp eax, dword [esp + 0x94]
ja 0x528185
jb 0x52817d
cmp dword [ecx], ebp
ja 0x528185
inc esi
add ecx, 0x18
cmp esi, edi
jl 0x528140
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp esi, dword [esp + 0x34]
jge 0x5281ce
mov eax, dword [esp + 0x20]
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 0x5281d2
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x44]
jb 0x52821f
mov ecx, dword [esp + 0x24]
ja 0x5281e6
cmp esi, ecx
jb 0x52821f
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 + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x88], ecx
jmp 0x52822a
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x88]
cmp esi, edx
jne 0x528243
cmp ecx, edi
jne 0x528243
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 0x528616
jb 0x528276
cmp edx, esi
jae 0x528616
mov esi, dword [esp + 0x74]
nop word [eax + eax]
cmp esi, dword [esp + 0x7c]
ja 0x528616
mov edi, dword [esp + 0x70]
jb 0x52829e
cmp edi, dword [esp + 0x78]
ja 0x528616
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x90]
sub ecx, edx
mov edx, dword [esp + 0x94]
sbb edx, dword [esp + 0x10]
call fcn.00581180
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x88]
sbb edx, dword [esp + 0x10]
movsd qword [esp + 0x68], xmm0
call fcn.00581180
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.00581180
mulsd xmm0, qword [esp + 0x68]
call fcn.005810d0
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 0x528332
mov edx, dword [esp + 0x78]
jg 0x528326
cmp esi, edx
jb 0x528332
mov edi, dword [esp + 0x7c]
mov esi, edx
sub esi, 1
sbb edi, 0
cmp edi, eax
jg 0x528340
jl 0x52833c
cmp esi, ecx
jae 0x528340
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 0x528616
mov ecx, ebx
call fcn.00524860
test eax, eax
je 0x52861e
mov eax, dword [ebx + 4]
mov ecx, ebx
mov dword [eax + 0x1808], 0
call fcn.00524a60
test eax, eax
je 0x528616
mov eax, dword [ebx]
cmp dword [eax], 7
je 0x528616
mov eax, dword [ebx + 4]
cmp dword [eax + 0xe30], 0
je 0x528628
cmp dword [eax + 0xf0], 0
jne 0x5283b1
cmp dword [eax + 0xf4], 0
je 0x5283e0
mov ecx, dword [eax + 0xea8]
mov edx, 0
add ecx, dword [eax + 0xec0]
adc edx, dword [eax + 0xec4]
cmp edx, dword [esp + 0x88]
jb 0x528407
ja 0x5283d9
cmp ecx, dword [esp + 0x18]
jb 0x528407
cmp dword [esp + 0x64], 0
jne 0x528407
cmp esi, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
jne 0x5283f2
cmp edi, esi
je 0x528616
test ebp, ebp
je 0x5283fd
add ebp, ebp
jmp 0x5285f5
mov ebp, 0x10
jmp 0x5285f5
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x64], 0
cmp dword [eax + 0xec4], ebp
jb 0x528616
mov ebp, dword [eax + 0xec0]
ja 0x528431
cmp ebp, dword [esp + 0x14]
jb 0x528616
mov ebx, dword [esp + 0x94]
cmp ebx, dword [eax + 0xec4]
mov ebx, dword [esp + 0x1c]
ja 0x528515
jb 0x528457
cmp dword [esp + 0x90], ebp
jae 0x528515
cmp dword [eax], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x88], edx
jne 0x528616
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x528616
push dword [eax + 0x30]
lea eax, [esp + 0x7c]
push eax
push ebx
call ecx
add esp, 0xc
test eax, eax
jne 0x528616
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 0x14]
test dl, 7
jne 0x528616
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 0x5285cb
cmp dword [eax], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
jne 0x528616
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x528616
push dword [eax + 0x30]
lea eax, [esp + 0x74]
push eax
push ebx
call ecx
add esp, 0xc
test eax, eax
jne 0x528616
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 0x14]
test dl, 7
jne 0x528616
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 + 0x10]
cmp edi, dword [esp + 0x88]
ja 0x528616
mov edx, dword [esp + 0x14]
jb 0x528280
cmp edx, dword [esp + 0x18]
jb 0x528280
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