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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xbc
mov esi, eax
mov dword [esp + 0x7c], edx
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x521e30
mov edi, dword [esi + 8]
add edi, 0xfffffffe
jmp 0x521e66
cmp eax, 2
jne 0x521e3d
mov edi, dword [esi + 8]
add edi, 0xfffffffd
jmp 0x521e66
mov dword [esp + 8], 0x102
mov dword [esp], 1
call fcn.004f73c0
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
mov dword [esp], eax
call fcn.004f73d0
xor edi, edi
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x5220f3
cmp edi, 0xa
jge 0x521e78
mov ebp, edi
jmp 0x521e7d
mov ebp, 0xa
mov eax, dword [ebp*4 + 0x607770]
mov dword [esp + 0x78], eax
test eax, eax
je 0x52267a
xor ebx, ebx
test edi, edi
jle 0x5220b0
mov dword [esp + 0x5c], edi
mov eax, ebp
add eax, 0x80000000
adc eax, 0x80000000
sar eax, 1
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
fld dword [0x61e7bc]
cmp ebx, eax
fld dword [0x61e7c0]
fld dword [0x61e7c4]
jge 0x521f20
test ebp, ebp
jle 0x52208a
mov edx, dword [esp + 0x78]
lea eax, [ebp*8]
mov ecx, ebx
shl ecx, 2
lea eax, [eax + ebp*4]
mov edi, dword [esp + 0x7c]
imul ecx, ebp
add edx, ecx
lea ecx, [edi + eax]
mov eax, edi
fld dword [edx]
fmul dword [eax]
fld dword [edx]
fmul dword [eax + 4]
fxch st(4)
faddp st(1)
fld dword [edx]
fmul dword [eax + 8]
fxch st(3)
faddp st(4)
fxch st(1)
add edx, 4
add eax, 0xc
faddp st(2)
fxch st(2)
cmp eax, ecx
fxch st(1)
jl 0x521ef3
jmp 0x52208a
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x70]
sub eax, edx
cmp ebx, eax
jge 0x521fc0
test ebp, ebp
jle 0x52208a
lea eax, [ebp*8]
mov ecx, ebx
sub ecx, edx
lea eax, [eax + ebp*4]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0xb0], esi
lea esi, [ecx*8]
lea esi, [esi + ecx*4]
mov ecx, dword [esp + 0x78]
add eax, esi
mov dword [esp + 0xb4], ecx
mov ecx, eax
add ecx, edi
lea eax, [edi + esi]
mov esi, ebp
shl esi, 2
imul edx, esi
mov esi, dword [esp + 0xb4]
add edx, esi
mov esi, dword [esp + 0xb0]
fld dword [eax]
fmul dword [edx]
fld dword [edx]
fmul dword [eax + 4]
fxch st(4)
faddp st(1)
fld dword [edx]
fmul dword [eax + 8]
fxch st(3)
faddp st(4)
fxch st(1)
add eax, 0xc
add edx, 4
faddp st(2)
fxch st(2)
cmp eax, ecx
fxch st(1)
jl 0x521f89
jmp 0x52208a
test ebp, ebp
jle 0x52208a
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x78]
mov edx, ebp
sub edx, eax
sub eax, ebp
add edx, ebx
mov edi, dword [esp + 0x7c]
shl edx, 2
imul edx, ebp
mov dword [esp + 0xb0], esi
lea esi, [edx + ebp*4]
add edx, ecx
add ecx, esi
lea esi, [eax*8]
lea eax, [esi + eax*4]
mov esi, dword [esp + 0xb0]
add eax, edi
mov edi, ecx
sub edi, edx
and edi, 0xfffffff8
add edi, edx
mov dword [esp + 0x88], edi
cmp edx, edi
jge 0x52205e
fld dword [edx]
fmul dword [eax]
fld dword [edx + 4]
fmul dword [eax + 0xc]
fxch st(4)
faddp st(1)
fld dword [edx]
fmul dword [eax + 4]
fxch st(1)
faddp st(4)
fld dword [edx + 4]
fmul dword [eax + 0x10]
fxch st(3)
faddp st(1)
fld dword [edx]
fmul dword [eax + 8]
fxch st(1)
faddp st(3)
fld dword [edx + 4]
fmul dword [eax + 0x14]
fxch st(2)
faddp st(1)
add edx, 8
mov edi, dword [esp + 0x88]
add eax, 0x18
faddp st(1)
cmp edx, edi
jl 0x522017
cmp edx, ecx
jge 0x52208a
fld dword [edx]
fmul dword [eax]
fld dword [edx]
fmul dword [eax + 4]
fxch st(4)
faddp st(1)
fld dword [edx]
fmul dword [eax + 8]
fxch st(3)
faddp st(4)
fxch st(1)
add edx, 4
add eax, 0xc
faddp st(2)
fxch st(2)
cmp edx, ecx
fxch st(1)
jl 0x522062
lea eax, [ebx*8 + 8]
mov edx, dword [esp + 0x5c]
lea eax, [eax + ebx*4 + 4]
inc ebx
cmp ebx, edx
fstp dword [esi + eax + 0x40]
fstp dword [esi + eax + 0x3c]
fstp dword [esi + eax + 0x38]
jl 0x521eb0
mov edi, edx
lea eax, [edi*8]
mov edx, dword [esi + 0x58]
mov ecx, dword [esi + 0x54]
mov ebx, dword [esi + 0x50]
lea eax, [eax + edi*4]
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], ecx
lea edx, [edi*8]
mov dword [esi + 0x38], ebx
mov ecx, dword [esi + eax + 0x2c]
lea edx, [edx + edi*4]
mov dword [esi + edx + 0x44], ecx
mov ecx, dword [esi + eax + 0x30]
mov dword [esi + edx + 0x48], ecx
mov eax, dword [esi + eax + 0x34]
mov dword [esi + edx + 0x4c], eax
jmp 0x52263c
cmp eax, 2
jne 0x522649
cmp edi, 0xa
jge 0x522107
mov dword [esp + 0x64], edi
jmp 0x522110
mov eax, 0xa
mov dword [esp + 0x64], eax
mov ebp, dword [esp + 0x64]
mov eax, ebp
add eax, 0x80000000
adc eax, 0x80000000
mov edx, ebp
mov ebp, eax
sar ebp, 1
mov eax, ebp
add eax, eax
sub edx, eax
je 0x5222a8
lea eax, [ebp*4 + 4]
mov edx, dword [0x606064]
lea ebx, [ebp + 1]
mov dword [esp], eax
call dword [edx + pe_nt_image_headers32]
test eax, eax
je 0x5226e1
mov dword [eax], 1
cmp ebx, 2
mov dword [eax + 4], 3
jle 0x5221d2
lea edx, [eax + 8]
lea ebx, [eax + ebp*4 + 4]
mov dword [esp + 0x78], eax
mov eax, edx
mov ecx, ebx
sub ecx, eax
and ecx, 0xfffffff8
add ecx, eax
mov dword [esp + 0x90], ecx
cmp eax, ecx
jge 0x5221b6
lea esi, [esi]
mov edx, dword [eax - 4]
mov ecx, dword [eax - 8]
shl edx, 2
sub edx, ecx
mov ecx, dword [eax - 4]
mov dword [eax], edx
shl edx, 2
sub edx, ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x90]
add eax, 8
cmp eax, edx
jl 0x522190
cmp eax, ebx
jge 0x5221ce
mov edx, dword [eax - 4]
mov ecx, dword [eax - 8]
shl edx, 2
sub edx, ecx
mov dword [eax], edx
add eax, 4
cmp eax, ebx
jl 0x5221ba
mov eax, dword [esp + 0x78]
test eax, eax
je 0x52266d
mov edx, dword [eax + ebp*4]
mov dword [esp], eax
mov dword [esp + 0x40], edx
mov eax, dword [0x606064]
fild dword [esp + 0x40]
fdivr dword [0x61e7c8]
fstp qword [esp + 0x70]
call dword [eax + 0x134]
lea eax, [ebp*4 + 4]
mov edx, dword [0x606064]
lea ebx, [ebp + 1]
mov dword [esp], eax
call dword [edx + pe_nt_image_headers32]
test eax, eax
je 0x5226ab
mov dword [eax], 1
cmp ebx, 2
mov dword [eax + 4], 5
jle 0x522297
lea edx, [eax + 8]
lea ebx, [eax + ebp*4 + 4]
mov dword [esp + 0x78], eax
mov eax, edx
mov ecx, ebx
sub ecx, eax
and ecx, 0xfffffff8
add ecx, eax
mov dword [esp + 0x98], ecx
cmp eax, ecx
jge 0x52227b
mov edx, dword [eax - 4]
mov ecx, dword [eax - 8]
shl edx, 2
sub edx, ecx
mov ecx, dword [eax - 4]
mov dword [eax], edx
shl edx, 2
sub edx, ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x98]
add eax, 8
cmp eax, edx
jl 0x522255
cmp eax, ebx
jge 0x522293
mov edx, dword [eax - 4]
mov ecx, dword [eax - 8]
shl edx, 2
sub edx, ecx
mov dword [eax], edx
add eax, 4
cmp eax, ebx
jl 0x52227f
mov eax, dword [esp + 0x78]
mov dword [esp + 0x68], eax
test eax, eax
je 0x52266d
jmp 0x522414
mov eax, dword [0x606064]
mov edx, ebp
shl edx, 2
mov dword [esp], edx
call dword [eax + pe_nt_image_headers32]
test eax, eax
je 0x52274d
mov dword [eax], 1
cmp ebp, 2
mov dword [eax + 4], 4
jle 0x522342
lea edx, [eax + 8]
lea ebx, [eax + ebp*4]
mov dword [esp + 0x78], eax
mov eax, edx
mov ecx, ebx
sub ecx, eax
and ecx, 0xfffffff8
add ecx, eax
mov dword [esp + 0xa0], ecx
cmp eax, ecx
jge 0x522326
lea esi, [esi]
mov edx, dword [eax - 4]
mov ecx, dword [eax - 8]
shl edx, 2
sub edx, ecx
mov ecx, dword [eax - 4]
mov dword [eax], edx
shl edx, 2
sub edx, ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0xa0]
add eax, 8
cmp eax, edx
jl 0x522300
cmp eax, ebx
jge 0x52233e
mov edx, dword [eax - 4]
mov ecx, dword [eax - 8]
shl edx, 2
sub edx, ecx
mov dword [eax], edx
add eax, 4
cmp eax, ebx
jl 0x52232a
mov eax, dword [esp + 0x78]
test eax, eax
je 0x52266d
mov edx, dword [eax + ebp*4 - 4]
mov dword [esp], eax
mov dword [esp + 0x40], edx
mov eax, dword [0x606064]
fild dword [esp + 0x40]
fdivr dword [0x61e7d0]
fstp qword [esp + 0x70]
call dword [eax + 0x134]
lea eax, [ebp*4 + 4]
mov edx, dword [0x606064]
lea ebx, [ebp + 1]
mov dword [esp], eax
call dword [edx + pe_nt_image_headers32]
test eax, eax
je 0x522717
mov dword [eax], 1
cmp ebx, 2
mov dword [eax + 4], 2
jle 0x522408
lea edx, [eax + 8]
lea ebx, [eax + ebp*4 + 4]
mov dword [esp + 0x78], eax
mov eax, edx
mov ecx, ebx
sub ecx, eax
and ecx, 0xfffffff8
add ecx, eax
mov dword [esp + 0xa8], ecx
cmp eax, ecx
jge 0x5223ec
mov edx, dword [eax - 4]
mov ecx, dword [eax - 8]
shl edx, 2
sub edx, ecx
mov ecx, dword [eax - 4]
mov dword [eax], edx
shl edx, 2
sub edx, ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0xa8]
add eax, 8
cmp eax, edx
jl 0x5223c6
cmp eax, ebx
jge 0x522404
mov edx, dword [eax - 4]
mov ecx, dword [eax - 8]
shl edx, 2
sub edx, ecx
mov dword [eax], edx
add eax, 4
cmp eax, ebx
jl 0x5223f0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x68], eax
test eax, eax
je 0x52266d
lea eax, [ebp - 1]
test eax, eax
jl 0x522430
mov ecx, dword [esp + 0x68]
lea eax, [ecx + ebp*4 - 4]
mov edx, dword [eax]
neg edx
mov dword [eax], edx
add eax, 0xfffffff8
cmp ecx, eax
jle 0x522423
xor eax, eax
test edi, edi
jle 0x5225cd
mov edx, dword [esp + 0x64]
mov dword [esp + 0x54], edi
inc edx
mov ecx, esi
add edx, 0x80000000
mov dword [esp + 0x80], esi
adc edx, 0x80000000
mov dword [esp + 0x5c], edi
sar edx, 1
mov dword [esp + 0x60], ebp
mov dword [esp + 0x58], edx
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
mov ebx, edx
cdq
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x60]
idiv ebx
fild dword [esi + edi*4]
inc edi
mov eax, 1
lea ebx, [edx*8]
mov dword [esp + 0x64], eax
lea ebx, [ebx + edx*4]
fld dword [ebp + ebx]
fmul st(1)
fld dword [ebp + ebx + 4]
fmul st(2)
fxch st(2)
fmul dword [ebp + ebx + 8]
cmp edi, 1
jle 0x522519
mov esi, dword [esp + 0x6c]
mov ebx, 0xfffffffc
inc esi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x78], ecx
mov eax, esi
mov edx, dword [esp + 0x5c]
mov ecx, edx
cdq
inc esi
idiv ecx
mov eax, dword [esp + 0x68]
lea ecx, [ebx + edi*4]
add ebx, 0xfffffffc
fild dword [eax + ecx]
lea eax, [edx*8]
mov ecx, dword [esp + 0x64]
inc ecx
lea eax, [eax + edx*4]
lea edx, [edi + 1]
mov dword [esp + 0x64], ecx
fld dword [eax + ebp]
fmul st(1)
fld dword [eax + ebp + 4]
fmul st(2)
fxch st(4)
faddp st(1)
fxch st(4)
faddp st(3)
fmul dword [eax + ebp + 8]
faddp st(1)
fxch st(1)
cmp ecx, edx
fxch st(2)
fxch st(1)
jl 0x5224c3
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x58]
mov ebx, 1
cmp eax, 1
jle 0x522586
mov edi, 0xfffffffc
mov esi, dword [esp + 0x68]
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
sub eax, ebx
mov ecx, dword [esp + 0x60]
inc ebx
lea ecx, [edi + ecx*4]
add edi, 0xfffffffc
fild dword [esi + ecx]
mov ecx, edx
cdq
idiv ecx
mov eax, dword [esp + 0x58]
lea ecx, [edx*8]
lea ecx, [ecx + edx*4]
fld dword [ecx + ebp]
fmul st(1)
fld dword [ecx + ebp + 4]
fmul st(2)
fxch st(4)
faddp st(1)
fxch st(4)
faddp st(3)
fmul dword [ecx + ebp + 8]
faddp st(1)
fxch st(1)
cmp ebx, eax
fxch st(2)
fxch st(1)
jl 0x522534
mov ecx, dword [esp + 0x78]
fmul qword [esp + 0x70]
fxch st(1)
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x6c]
fmul qword [esp + 0x70]
fxch st(2)
inc eax
inc edx
fmul qword [esp + 0x70]
fxch st(1)
fstp dword [ecx + 0x4c]
fxch st(1)
fstp dword [ecx + 0x44]
fstp dword [ecx + 0x48]
mov dword [esp + 0x54], eax
add ecx, 0xc
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x6c], edx
cmp edx, eax
jl 0x52246e
mov edi, eax
mov esi, dword [esp + 0x80]
lea eax, [edi*8]
lea edx, [edi*8]
mov ecx, dword [esi + 0x44]
lea ebx, [edi*8]
lea eax, [eax + edi*4]
lea edx, [edx + edi*4]
lea ebx, [ebx + edi*4]
mov ebp, dword [esp + 0x68]
mov edi, dword [esi + eax + 0x38]
mov dword [esp], ebp
mov dword [esi + 0x38], edi
mov ebp, dword [esi + eax + 0x3c]
mov dword [esi + 0x3c], ebp
mov eax, dword [esi + eax + 0x40]
mov dword [esi + 0x40], eax
mov dword [esi + edx + 0x44], ecx
mov eax, dword [esi + 0x48]
mov dword [esi + edx + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [esi + edx + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [esi + ebx + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [esi + ebx + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [esi + ebx + 0x58], eax
mov eax, dword [0x606064]
call dword [eax + 0x134]
add esp, 0xbc
mov eax, esi
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x38], 0x102
mov dword [esp], 1
call fcn.004f73c0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x10], 0x102
mov dword [esp], 0x80000016
call fcn.004f73c0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp], eax
call fcn.004f73d0
add esp, 0xbc
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
lea eax, [ebp*4 + 4]
mov dword [esp], 0x80000013
mov dword [esp + 0x20], 0x102
mov dword [esp + 4], eax
call fcn.004f73c0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.004f73d0
xor eax, eax
jmp 0x522297
lea eax, [ebp*4 + 4]
mov dword [esp], 0x80000013
mov dword [esp + 0x18], 0x102
mov dword [esp + 4], eax
call fcn.004f73c0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call fcn.004f73d0
xor eax, eax
jmp 0x5221d2
lea eax, [ebp*4 + 4]
mov dword [esp], 0x80000013
mov dword [esp + 0x30], 0x102
mov dword [esp + 4], eax
call fcn.004f73c0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.004f73d0
xor eax, eax
jmp 0x522408
mov dword [esp + 0x28], 0x102
mov dword [esp], 0x80000013
mov eax, ebp
shl eax, 2
mov dword [esp + 4], eax
call fcn.004f73c0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.004f73d0
xor eax, eax
jmp 0x522342