Function at 0x520020
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.0051fde0
add esp, 8
test eax, eax
je 0x520120
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 0x520148
lea edx, [esp + 0x30]
push edi
push edx
call fcn.0051fde0
add esp, 8
test eax, eax
je 0x52014c
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 0x5200f6
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.0051fde0
add esp, 8
test eax, eax
je 0x520285
xor edx, edx
cmp ebp, 4
jl 0x520225
lea ecx, [esp + 0x94]
lea ecx, [ecx]
fld dword [ecx - 4]
fld dword [esi]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5201c0
fld dword [ecx]
fld dword [esi + 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520266
fld dword [ecx + 0xc]
fld dword [esi]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5201dd
fld dword [ecx + 0x10]
fld dword [esi + 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x52025b
fld dword [ecx + 0x1c]
fld dword [esi]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5201fa
fld dword [ecx + 0x20]
fld dword [esi + 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x52025e
fld dword [ecx + 0x2c]
fld dword [esi]
fucompp
fnstsw ax
test ah, 0x44
jp 0x520217
fld dword [ecx + 0x30]
fld dword [esi + 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520263
add edx, 4
add ecx, 0x40
cmp edx, ebx
jl 0x5201a0
cmp edx, ebp
jge 0x520268
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 0x520251
fld dword [ecx]
fld dword [esi + 4]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x520266
inc edx
add ecx, 0x10
cmp edx, ebp
jl 0x520235
jmp 0x520266
inc edx
jmp 0x520266
add edx, 2
jmp 0x520266
add edx, 3
cmp edx, ebp
jne 0x520285
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 0x520172
mov ecx, 0x616c90
mov dword [esp + 0x20], ecx
jmp 0x5202a4
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, 0x616c70
jmp 0x5202e0
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.0051fd10
add esp, 0x14
test eax, eax
je 0x520416
fld dword [esp + 0x14]
xor ecx, ecx
cmp ebp, 4
fld dword [esp + 0x10]
jl 0x5203ae
lea edx, [esp + 0x94]
fld dword [edx - 4]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x520350
fld dword [edx]
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5203ee
fld dword [edx + 0xc]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x52036c
fld dword [edx + 0x10]
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5203e3
fld dword [edx + 0x1c]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x520388
fld dword [edx + 0x20]
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5203e6
fld dword [edx + 0x2c]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x5203a4
fld dword [edx + 0x30]
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5203eb
add ecx, 4
add edx, 0x40
cmp ecx, edi
jl 0x520331
cmp ecx, ebp
jge 0x5203ee
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 0x5203d9
fld dword [edx]
fld st(2)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5203ee
inc ecx
add edx, 0x10
cmp ecx, ebp
jl 0x5203be
jmp 0x5203ee
inc ecx
jmp 0x5203ee
add ecx, 2
jmp 0x5203ee
add ecx, 3
fstp st(1)
fstp st(0)
cmp ecx, ebp
jne 0x520416
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, 0x616c90
jl 0x5202e0
mov eax, dword [esp + 0x20]
add eax, 8
cmp eax, 0x616ca8
mov dword [esp + 0x20], eax
jl 0x5202a0
mov dword [esp + 0x20], ebp
test ebp, ebp
jle 0x5206cc
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 0x5206b3
lea ecx, [ebp - 1]
cmp ecx, 4
jl 0x5205f1
add ebp, 0xfffffffd
mov dword [esp + 0x2c], ebp
lea ebp, [edx + 3]
lea ecx, [esp + 0xa0]
jmp 0x5204a5
mov ebp, dword [esp + 0x28]
fld dword [esp + 0x10]
fld dword [ecx]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x5204b8
fstp st(0)
jmp 0x5204d3
fld dword [ecx]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5204ee
fld dword [esp + 0x14]
fld dword [ecx + 4]
fcompp
fnstsw ax
test ah, 5
jp 0x5204ee
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 0x520502
fstp st(0)
jmp 0x52051e
fld dword [ecx + 0x10]
fucompp
fnstsw ax
test ah, 0x44
jp 0x520539
fld dword [esp + 0x14]
fld dword [ecx + 0x14]
fcompp
fnstsw ax
test ah, 5
jp 0x520539
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 0x52054d
fstp st(0)
jmp 0x520569
fld dword [ecx + 0x20]
fucompp
fnstsw ax
test ah, 0x44
jp 0x520583
fld dword [esp + 0x14]
fld dword [ecx + 0x24]
fcompp
fnstsw ax
test ah, 5
jp 0x520583
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 0x520597
fstp st(0)
jmp 0x5205b3
fld dword [ecx + 0x30]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5205ce
fld dword [esp + 0x14]
fld dword [ecx + 0x34]
fcompp
fnstsw ax
test ah, 5
jp 0x5205ce
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 0x5204a1
mov ebp, dword [esp + 0x20]
cmp eax, ebp
jge 0x520659
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 0x520613
fstp st(0)
jmp 0x52062e
fld dword [ecx]
fucompp
fnstsw ax
test ah, 0x44
jp 0x520649
fld dword [esp + 0x14]
fld dword [ecx + 4]
fcompp
fnstsw ax
test ah, 5
jp 0x520649
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 0x520600
test edx, edx
je 0x5206b3
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.0051fea0
add esp, 0xc
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x120
ret