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

Disassembly:
sub esp, 0x44
mov eax, dword [0x961870]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [0x96186c]
cmp ecx, eax
mov dword [esp + 0x18], edi
jae 0x540268
mov dword [ecx], str.LtBroadPhase
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx + 0x238]
push edx
lea ecx, [esp + 0x30]
call fcn.00537a00
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 0x238]
push ecx
lea ecx, [esp + 0x44]
call fcn.00537a00
mov esi, dword [edi + 0x40]
mov ecx, dword [0x9617f0]
mov eax, dword [ecx + 0xc]
mov ebp, esi
shl ebp, 5
add ebp, 0xf
and ebp, 0xfffffff0
cmp ebp, eax
mov dword [esp + 0x24], ebp
jle 0x5402b9
mov edx, dword [ecx]
push ebp
call dword [edx + 0x24]
mov dword [esp + 0x10], eax
jmp 0x5402cb
mov edx, dword [ecx + 8]
lea ebx, [edx + ebp]
sub eax, ebp
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov dword [esp + 0x10], edx
mov ecx, dword [0x9617f0]
mov eax, dword [ecx + 0xc]
lea esi, [esi*4 + 0xf]
and esi, 0xfffffff0
cmp esi, eax
mov dword [esp + 0x28], esi
jle 0x5402f2
mov eax, dword [ecx]
push esi
call dword [eax + 0x24]
mov dword [esp + 0x14], eax
jmp 0x540304
mov edx, dword [ecx + 8]
lea ebx, [edx + esi]
sub eax, esi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov dword [esp + 0x14], edx
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx + 0xcc]
fld dword [edx + 8]
mov ecx, dword [0x96186c]
fmul dword [0x6431e4]
mov eax, dword [0x961870]
cmp ecx, eax
fstp dword [esp + 0x20]
jae 0x540345
mov dword [ecx], str.StCalcAabbs
rdtsc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x40]
dec eax
mov ebx, dword [edi + 0x3c]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
js 0x540399
lea ebp, [eax + 1]
lea ecx, [ecx]
mov eax, dword [ebx]
add eax, 0xc
je 0x54036c
lea ecx, [eax + 0x10]
jmp 0x54036e
xor ecx, ecx
mov dword [edi], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edx, dword [ecx]
push esi
push dword [esp + 0x24]
add eax, 0x20
push eax
call dword [edx + 0x18]
add esi, 0x20
add ebx, 4
add edi, 4
dec ebp
jne 0x540360
mov ecx, dword [0x96186c]
mov ebp, dword [esp + 0x24]
cmp ecx, dword [0x961870]
jae 0x5403bd
mov dword [ecx], str.St3AxisSweep
rdtsc
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 0x40]
push edx
mov edx, dword [esp + 0x20]
push edi
push edx
call dword [eax + 0x14]
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x54040c
mov dword [ecx], str.StExamine
rdtsc
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0x78]
test eax, eax
jle 0x54048f
mov ecx, dword [esp + 0x30]
lea esi, [eax + ecx]
mov eax, dword [esp + 0x34]
and eax, 0x7fffffff
cmp eax, esi
mov edi, ecx
jge 0x540445
add eax, eax
cmp esi, eax
jl 0x540435
mov eax, esi
push 8
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0054d250
add esp, 0xc
mov ecx, dword [ebx + 0x78]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x30], esi
jle 0x540484
lea ecx, [edi*8]
lea esp, [esp]
mov edx, dword [ebx + 0x74]
mov esi, dword [edx + eax*8]
mov edi, dword [esp + 0x2c]
mov dword [ecx + edi], esi
mov edx, dword [edx + eax*8 + 4]
mov esi, dword [esp + 0x2c]
mov dword [ecx + esi + 4], edx
mov edx, dword [ebx + 0x78]
inc eax
add ecx, 8
cmp eax, edx
jl 0x540460
mov edi, dword [esp + 0x10]
mov dword [ebx + 0x78], 0
mov eax, dword [esp + 0x28]
test eax, eax
mov ecx, dword [0x9617f0]
je 0x5404b5
mov edx, dword [ecx + 0x14]
mov esi, dword [esp + 0x14]
cmp esi, edx
je 0x5404ac
test edx, edx
jne 0x5404b5
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 0x28]
jmp 0x5404c5
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
sub esi, eax
add edx, eax
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
test ebp, ebp
mov ecx, dword [0x9617f0]
je 0x5404e3
mov eax, dword [ecx + 0x14]
cmp edi, eax
je 0x5404da
test eax, eax
jne 0x5404e3
mov eax, dword [ecx]
push ebp
push edi
call dword [eax + 0x28]
jmp 0x5404f3
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
sub edx, ebp
add eax, ebp
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0053fc40
mov byte [ebx + 0x30], 1
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x54053c
mov dword [ecx], 0x65b984
rdtsc
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x58]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [0x96186c], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [0x9617f0]
lea eax, [eax*8 + 0xf]
and eax, 0xfffffff0
je 0x54056a
mov edx, dword [ecx + 0x14]
mov esi, dword [esp + 0x4c]
cmp esi, edx
je 0x540561
test edx, edx
jne 0x54056a
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 0x28]
jmp 0x54057a
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
sub esi, eax
add edx, eax
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov eax, dword [esp + 0x48]
test eax, eax
js 0x54059d
mov ecx, dword [0x9617f0]
mov edx, dword [ecx]
and eax, 0x7fffffff
push 0x12
shl eax, 3
push eax
mov eax, dword [esp + 0x48]
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x9617f0]
lea eax, [eax*8 + 0xf]
and eax, 0xfffffff0
je 0x5405cb
mov edx, dword [ecx + 0x14]
mov esi, dword [esp + 0x38]
cmp esi, edx
je 0x5405c2
test edx, edx
jne 0x5405cb
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 0x28]
jmp 0x5405db
mov esi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
sub esi, eax
add edx, eax
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov eax, dword [esp + 0x34]
test eax, eax
js 0x5405fe
mov ecx, dword [0x9617f0]
mov edx, dword [ecx]
and eax, 0x7fffffff
push 0x12
shl eax, 3
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [edx + 0x14]
mov ecx, dword [ebx + 0x20]
mov al, byte [ecx + 0x23e]
test al, al
mov ecx, ebx
je 0x540621
mov edx, dword [esp + 0x5c]
push edx
call fcn.0053fe00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
mov eax, dword [esp + 0x5c]
push eax
call fcn.005400d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8