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

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x13c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x64], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x70], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x78], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x7c], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x80], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x84], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x88], ecx
mov ecx, dword [eax]
mov dword [esp + 0x8c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 0x3c]
xor ebp, ebp
mov edi, dword [esp + 0x138]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
lea esi, [esp + 0x90]
lea ebx, [ebp + 3]
lea eax, [esp + 0x60]
push edi
push eax
call fcn.005208a0
add esp, 8
test eax, eax
je 0x520be0
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [esi], ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jmp 0x520c08
lea edx, [esp + 0x30]
push edi
push edx
call fcn.005208a0
add esp, 8
test eax, eax
je 0x520c0c
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esi], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
inc ebp
add esi, 0x10
add edi, 0x10
sub ebx, 1
jne 0x520bb6
mov esi, dword [esp + 0x13c]
mov ecx, ebp
shl ecx, 4
lea ebx, [ebp - 3]
lea edi, [esp + ecx + 0x90]
mov dword [esp + 0x20], 4
mov edx, dword [esp + 0x138]
push esi
push edx
call fcn.005208a0
add esp, 8
test eax, eax
je 0x520d45
xor edx, edx
cmp ebp, 4
jl 0x520ce5
lea ecx, [esp + 0x94]
lea ecx, [ecx]
fld dword [ecx - 4]
fld dword [esi]
fucompp
fnstsw ax
test ah, 0x44
jp 0x520c80
fld dword [ecx]
fld dword [esi + 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520d26
fld dword [ecx + 0xc]
fld dword [esi]
fucompp
fnstsw ax
test ah, 0x44
jp 0x520c9d
fld dword [ecx + 0x10]
fld dword [esi + 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520d1b
fld dword [ecx + 0x1c]
fld dword [esi]
fucompp
fnstsw ax
test ah, 0x44
jp 0x520cba
fld dword [ecx + 0x20]
fld dword [esi + 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520d1e
fld dword [ecx + 0x2c]
fld dword [esi]
fucompp
fnstsw ax
test ah, 0x44
jp 0x520cd7
fld dword [ecx + 0x30]
fld dword [esi + 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520d23
add edx, 4
add ecx, 0x40
cmp edx, ebx
jl 0x520c60
cmp edx, ebp
jge 0x520d28
mov eax, edx
shl eax, 4
lea ecx, [esp + eax + 0x94]
fld dword [ecx - 4]
fld dword [esi]
fucompp
fnstsw ax
test ah, 0x44
jp 0x520d11
fld dword [ecx]
fld dword [esi + 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520d26
inc edx
add ecx, 0x10
cmp edx, ebp
jl 0x520cf5
jmp 0x520d26
inc edx
jmp 0x520d26
add edx, 2
jmp 0x520d26
add edx, 3
cmp edx, ebp
jne 0x520d45
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [edi], ecx
mov ecx, dword [esi + 0xc]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
inc ebp
inc ebx
add edi, 0x10
add esi, 0x10
sub dword [esp + 0x20], 1
jne 0x520c32
mov ecx, 0x617d10
mov dword [esp + 0x20], ecx
jmp 0x520d64
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x138]
mov ecx, dword [ecx]
shl edx, 4
add edx, eax
mov dword [esp + 0x24], edx
shl ecx, 4
add ecx, eax
mov edx, ebp
shl edx, 4
mov dword [esp + 0x28], ecx
lea edi, [ebp - 3]
lea esi, [esp + edx + 0x90]
mov ebx, 0x617cf0
jmp 0x520da0
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x13c]
mov edx, dword [ebx]
shl ecx, 4
add ecx, eax
push ecx
mov ecx, dword [esp + 0x2c]
shl edx, 4
add edx, eax
mov eax, dword [esp + 0x28]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.005207d0
add esp, 0x14
test eax, eax
je 0x520ed6
fld dword [esp + 0x14]
xor ecx, ecx
cmp ebp, 4
fld dword [esp + 0x10]
jl 0x520e6e
lea edx, [esp + 0x94]
fld dword [edx - 4]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x520e10
fld dword [edx]
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520eae
fld dword [edx + 0xc]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x520e2c
fld dword [edx + 0x10]
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520ea3
fld dword [edx + 0x1c]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x520e48
fld dword [edx + 0x20]
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520ea6
fld dword [edx + 0x2c]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x520e64
fld dword [edx + 0x30]
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520eab
add ecx, 4
add edx, 0x40
cmp ecx, edi
jl 0x520df1
cmp ecx, ebp
jge 0x520eae
mov eax, ecx
shl eax, 4
lea edx, [esp + eax + 0x94]
fld dword [edx - 4]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x520e99
fld dword [edx]
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520eae
inc ecx
add edx, 0x10
cmp ecx, ebp
jl 0x520e7e
jmp 0x520eae
inc ecx
jmp 0x520eae
add ecx, 2
jmp 0x520eae
add ecx, 3
fstp st(1)
fstp st(0)
cmp ecx, ebp
jne 0x520ed6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
inc ebp
inc edi
add esi, 0x10
add ebx, 8
cmp ebx, 0x617d10
jl 0x520da0
mov eax, dword [esp + 0x20]
add eax, 8
cmp eax, 0x617d28
mov dword [esp + 0x20], eax
jl 0x520d60
mov dword [esp + 0x20], ebp
test ebp, ebp
jle 0x52118c
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x1c], eax
mov eax, 1
xor edx, edx
cmp ebp, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
jle 0x521173
lea ecx, [ebp - 1]
cmp ecx, 4
jl 0x5210b1
add ebp, 0xfffffffd
mov dword [esp + 0x2c], ebp
lea ebp, [edx + 3]
lea ecx, [esp + 0xa0]
jmp 0x520f65
mov ebp, dword [esp + 0x28]
fld dword [esp + 0x10]
fld dword [ecx]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x520f78
fstp st(0)
jmp 0x520f93
fld dword [ecx]
fucompp
fnstsw ax
test ah, 0x44
jp 0x520fae
fld dword [esp + 0x14]
fld dword [ecx + 4]
fcompp
fnstsw ax
test ah, 5
jp 0x520fae
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx + 4]
mov esi, dword [ecx]
mov ebx, dword [ecx + 8]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
fld dword [esp + 0x10]
fld dword [ecx + 0x10]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x520fc2
fstp st(0)
jmp 0x520fde
fld dword [ecx + 0x10]
fucompp
fnstsw ax
test ah, 0x44
jp 0x520ff9
fld dword [esp + 0x14]
fld dword [ecx + 0x14]
fcompp
fnstsw ax
test ah, 5
jp 0x520ff9
mov eax, dword [ecx + 0x1c]
mov edi, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
lea edx, [ebp - 1]
fld dword [esp + 0x10]
fld dword [ecx + 0x20]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x52100d
fstp st(0)
jmp 0x521029
fld dword [ecx + 0x20]
fucompp
fnstsw ax
test ah, 0x44
jp 0x521043
fld dword [esp + 0x14]
fld dword [ecx + 0x24]
fcompp
fnstsw ax
test ah, 5
jp 0x521043
mov eax, dword [ecx + 0x2c]
mov edi, dword [ecx + 0x24]
mov esi, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov edx, ebp
fld dword [esp + 0x10]
fld dword [ecx + 0x30]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x521057
fstp st(0)
jmp 0x521073
fld dword [ecx + 0x30]
fucompp
fnstsw ax
test ah, 0x44
jp 0x52108e
fld dword [esp + 0x14]
fld dword [ecx + 0x34]
fcompp
fnstsw ax
test ah, 5
jp 0x52108e
mov eax, dword [ecx + 0x3c]
mov edi, dword [ecx + 0x34]
mov esi, dword [ecx + 0x30]
mov ebx, dword [ecx + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
lea edx, [ebp + 1]
mov eax, dword [esp + 0x24]
add eax, 4
add ebp, 4
add ecx, 0x40
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
jl 0x520f61
mov ebp, dword [esp + 0x20]
cmp eax, ebp
jge 0x521119
shl eax, 4
lea ecx, [esp + eax + 0x90]
nop
fld dword [esp + 0x10]
fld dword [ecx]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x5210d3
fstp st(0)
jmp 0x5210ee
fld dword [ecx]
fucompp
fnstsw ax
test ah, 0x44
jp 0x521109
fld dword [esp + 0x14]
fld dword [ecx + 4]
fcompp
fnstsw ax
test ah, 5
jp 0x521109
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx + 4]
mov esi, dword [ecx]
mov ebx, dword [ecx + 8]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x24]
inc eax
add ecx, 0x10
cmp eax, ebp
mov dword [esp + 0x24], eax
jl 0x5210c0
test edx, edx
je 0x521173
mov ecx, dword [esp + 0x90]
shl edx, 4
mov dword [esp + edx + 0x90], ecx
mov eax, dword [esp + 0x94]
lea edx, [esp + edx + 0x90]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x98]
mov dword [edx + 8], ecx
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0xc], eax
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ecx
mov eax, dword [esp + 0x134]
push ebp
lea edx, [esp + 0x94]
push edx
push eax
call fcn.00520960
add esp, 0xc
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x120
ret