Function at 0x513e30
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x74
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
push ebx
push esi
push edi
jae 0x513e66
mov dword [ecx], 0x65c5e8
rdtsc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [eax + 8]
mov ecx, dword [ecx + 8]
add eax, 0x20
add ecx, 0x20
push eax
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], edx
call fcn.0054c890
mov edx, dword [edi]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call dword [edx + 0x28]
mov eax, dword [esp + 0x28]
mov ecx, dword [0x9617f0]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
shl eax, 4
mov dword [esp + 0x20], eax
add eax, 0xf
and eax, 0xfffffff0
cmp eax, edx
jle 0x513ec5
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
mov dword [esp + 0x14], eax
jmp 0x513ed9
mov esi, dword [ecx + 8]
lea ebx, [esi + eax]
sub edx, eax
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edx
mov dword [esp + 0x14], esi
mov eax, esi
mov edx, dword [edi]
push eax
mov ecx, edi
mov esi, eax
call dword [edx + 0x2c]
mov ebx, dword [esp + 0x18]
dec ebx
lea edx, [ebx + 1]
cmp edx, 4
mov dword [esp + 0x1c], ebx
mov edi, ebx
jl 0x5140df
mov ecx, dword [esp + 0x14]
shr edx, 2
mov ebx, edx
add ecx, 0x18
neg ebx
lea edi, [edi + ebx*4]
jmp 0x513f10
fld dword [eax + 0xc]
xor ebx, ebx
fld dword [eax]
fld dword [eax + 4]
fld dword [eax + 8]
fld dword [esp + 0x50]
fmul st(2)
fld dword [esp + 0x40]
fmul st(4)
faddp st(1)
fld dword [esp + 0x60]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [esi]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x54]
fmul st(3)
faddp st(1)
fld dword [esp + 0x44]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x74]
fstp dword [ecx - 0x14]
fld dword [esp + 0x68]
fmul st(1)
fld dword [esp + 0x58]
fmul st(3)
faddp st(1)
fld dword [esp + 0x48]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x78]
fstp dword [ecx - 0x10]
mov dword [ecx - 0xc], ebx
fstp st(0)
fstp st(0)
fstp st(0)
fstp dword [ecx - 0xc]
fld dword [eax + 0x1c]
fld dword [eax + 0x10]
fld dword [eax + 0x14]
fld dword [eax + 0x18]
fld dword [esp + 0x50]
fmul st(2)
fld dword [esp + 0x40]
fmul st(4)
faddp st(1)
fld dword [esp + 0x60]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [ecx - 8]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x54]
fmul st(3)
faddp st(1)
fld dword [esp + 0x44]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x74]
fstp dword [ecx - 4]
fld dword [esp + 0x68]
fmul st(1)
fld dword [esp + 0x58]
fmul st(3)
faddp st(1)
fld dword [esp + 0x48]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x78]
fstp dword [ecx]
mov dword [ecx + 4], ebx
fstp st(0)
fstp st(0)
fstp st(0)
fstp dword [ecx + 4]
fld dword [eax + 0x2c]
fld dword [eax + 0x20]
fld dword [eax + 0x24]
add esi, 0x40
fld dword [eax + 0x28]
add ecx, 0x40
fld dword [esp + 0x50]
add eax, 0x40
dec edx
fmul st(2)
fld dword [esp + 0x40]
fmul st(4)
faddp st(1)
fld dword [esp + 0x60]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [ecx - 0x38]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x54]
fmul st(3)
faddp st(1)
fld dword [esp + 0x44]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x74]
fstp dword [ecx - 0x34]
fld dword [esp + 0x68]
fmul st(1)
fld dword [esp + 0x58]
fmul st(3)
faddp st(1)
fld dword [esp + 0x48]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x78]
fstp dword [ecx - 0x30]
mov dword [ecx - 0x2c], ebx
fstp st(0)
fstp st(0)
fstp st(0)
fstp dword [ecx - 0x2c]
fld dword [eax - 4]
fld dword [eax - 0x10]
fld dword [eax - 0xc]
fld dword [eax - 8]
fld dword [esp + 0x50]
fmul st(2)
fld dword [esp + 0x40]
fmul st(4)
faddp st(1)
fld dword [esp + 0x60]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [ecx - 0x28]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x54]
fmul st(3)
faddp st(1)
fld dword [esp + 0x44]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x74]
fstp dword [ecx - 0x24]
fld dword [esp + 0x68]
fmul st(1)
fld dword [esp + 0x58]
fmul st(3)
faddp st(1)
fld dword [esp + 0x48]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x78]
fstp dword [ecx - 0x20]
mov dword [ecx - 0x1c], ebx
fstp st(0)
fstp st(0)
fstp st(0)
fstp dword [ecx - 0x1c]
jne 0x513f10
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
cmp edi, ecx
jl 0x51415d
inc edi
fld dword [eax + 0xc]
add esi, 0x10
fld dword [eax]
add eax, 0x10
dec edi
fld dword [eax - 0xc]
fld dword [eax - 8]
fld dword [esp + 0x50]
fmul st(2)
fld dword [esp + 0x40]
fmul st(4)
faddp st(1)
fld dword [esp + 0x60]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [esi - 0x10]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x54]
fmul st(3)
faddp st(1)
fld dword [esp + 0x44]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x74]
fstp dword [esi - 0xc]
fld dword [esp + 0x68]
fmul st(1)
fld dword [esp + 0x58]
fmul st(3)
faddp st(1)
fld dword [esp + 0x48]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x78]
fstp dword [esi - 8]
mov dword [esi - 4], ecx
fstp st(0)
fstp st(0)
fstp st(0)
fstp dword [esi - 4]
jne 0x5140e6
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x514187
mov dword [ecx], str.StCollide
rdtsc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov esi, dword [esp + 0x20]
mov ecx, dword [0x9617f0]
mov eax, dword [ecx + 0xc]
add esi, 0xf
and esi, 0xfffffff0
cmp esi, eax
jle 0x5141a8
mov edx, dword [ecx]
push esi
call dword [edx + 0x24]
mov edi, eax
jmp 0x5141b8
mov edx, dword [ecx + 8]
lea edi, [edx + esi]
sub eax, esi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov edi, edx
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov dword [esp + 0x3c], eax
push edi
lea eax, [esp + 0x38]
push eax
call dword [edx + 0x28]
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x51420b
mov dword [ecx], str.StExamine
rdtsc
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
test ebx, ebx
jl 0x514258
inc ebx
lea eax, [edi + 0xc]
mov dword [esp + 0x1c], ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov edi, edi
mov ecx, dword [esp + 0x18]
fld dword [ecx]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x514242
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx]
push eax
push ecx
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add ecx, 0x10
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jne 0x514220
test esi, esi
mov ecx, dword [0x9617f0]
je 0x514276
mov eax, dword [ecx + 0x14]
cmp edi, eax
je 0x51426d
test eax, eax
jne 0x514276
mov edx, dword [ecx]
push esi
push edi
call dword [edx + 0x28]
jmp 0x514286
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
sub edx, esi
add eax, esi
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
test esi, esi
mov ecx, dword [0x9617f0]
je 0x5142a8
mov eax, dword [ecx + 0x14]
mov edx, dword [esp + 0x14]
cmp edx, eax
je 0x51429f
test eax, eax
jne 0x5142a8
mov eax, dword [ecx]
push esi
push edx
call dword [eax + 0x28]
jmp 0x5142b8
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
sub edx, esi
add eax, esi
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x5142e2
mov dword [ecx], 0x65b984
rdtsc
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret