Function at 0x508d70
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x418
push esi
push edi
mov edi, ecx
mov ecx, 0x8000
push dword [ebp + 8]
mov dword [esp + 0x1c], edi
mov dword [edi + 4], 0x1ffff
mov dword [edi], vtable.hkpWorld.0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], connect
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], connect
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], connect
mov dword [edi + 0x50], 0
mov word [edi + 0xb0], cx
lea ecx, [esp + 0x64]
mov dword [edi + 0xa8], 0xfffffff1
mov dword [edi + 0x11c], 0
mov dword [edi + 0x120], 0
mov dword [edi + 0x124], connect
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov dword [edi + 0x130], connect
mov dword [edi + 0x134], 0
mov dword [edi + 0x138], 0
mov dword [edi + 0x13c], connect
mov dword [edi + 0x140], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x148], connect
mov dword [edi + 0x14c], 0
mov dword [edi + 0x150], 0
mov dword [edi + 0x154], connect
mov dword [edi + 0x158], 0
mov dword [edi + 0x15c], 0
mov dword [edi + 0x160], connect
mov dword [edi + 0x164], 0
mov dword [edi + 0x168], 0
mov dword [edi + 0x16c], connect
mov dword [edi + 0x170], 0
mov dword [edi + 0x174], 0
mov dword [edi + 0x178], connect
mov dword [edi + 0x17c], 0
mov dword [edi + 0x180], 0
mov dword [edi + 0x184], connect
mov dword [edi + 0x188], 0
mov dword [edi + 0x18c], 0
mov dword [edi + 0x190], connect
mov dword [edi + 0x194], 0
mov dword [edi + 0x198], 0
mov dword [edi + 0x19c], connect
mov dword [edi + 0x1a0], 0
mov dword [edi + 0x1a4], 0
mov dword [edi + 0x1a8], connect
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1b0], 0
mov dword [edi + 0x1b4], connect
mov dword [edi + 0x1b8], 0
mov dword [edi + 0x1bc], 0
mov dword [edi + 0x1c0], connect
mov dword [edi + 0x1c4], 0
mov dword [edi + 0x1c8], 0
mov dword [edi + 0x1cc], connect
call fcn.00510830
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [edi + 0x110], 0xffffffff
mov dword [edi + 0x118], 0xffffffff
mov dword [edi + 0xc0], 0
mov byte [edi + 0x54], 1
push dword [0x884adc]
call esi
push 0x204
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
je 0x509006
mov dword [eax], 0
jmp 0x509008
xor eax, eax
mov dword [edi + 0x1d0], eax
mov al, byte [esp + 0xd6]
mov byte [esp + 0x12], al
test al, al
je 0x509036
cmp byte [esp + 0xb0], 0
jne 0x509031
cmp byte [esp + 0xb1], 0
je 0x509036
mov byte [esp + 0x12], 0
push dword [0x884adc]
call esi
push 0x28
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
je 0x509058
push edi
mov ecx, eax
call fcn.00538430
jmp 0x50905a
xor eax, eax
movaps xmm0, xmmword [esp + 0x90]
lea edx, [edi + 0x320]
mov dword [edi + 0x88], eax
lea ecx, [edi + 0x330]
mov eax, dword [esp + 0xd0]
mov dword [edi + 0xa0], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov word [edi + 0x9c], 0x100
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xa4], 1
mov dword [edi + 0x1d8], 0
mov dword [edi + 0x1dc], 0
push eax
movaps xmmword [edx], xmm0
movaps xmm0, xmmword [esp + 0xa4]
push ecx
movaps xmmword [ecx], xmm0
push edx
mov dword [edi + 0x340], eax
call dword [0x87afc0]
add esp, 0xc
mov dword [esp + 0x14], eax
cmp byte [esp + 0x12], 0
mov dword [edi + 0x58], eax
je 0x509193
mov ecx, dword [0x8cfde4]
test ecx, ecx
je 0x509193
push eax
call ecx
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [edi + 0x58], eax
call fcn.0045c160
push 0x200
lea eax, [esp + 0x224]
mov byte [edi + 0xcd], 1
push eax
lea ecx, [esp + 0x30]
call fcn.004745a0
push str.The_broadphase_has_been_wrapped_in_an_hkpHybridBroadphase
lea ecx, [esp + 0x2c]
call fcn.0045cb80
mov ecx, dword [0x884c54]
lea edx, [esp + 0x220]
push 0xc17
push str.WorldhkpWorld.cpp
push edx
mov eax, dword [ecx]
push 0xffffffffffffffff
push 0
call dword [eax + 0xc]
lea ecx, [esp + 0x28]
call fcn.0045caa0
jmp 0x50919a
mov byte [edi + 0xcd], 0
mov eax, dword [esp + 0x80]
mov dword [edi + 0x348], eax
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp + 0xc], 0x132b468
mov dword [edi + 0x34c], eax
mov eax, dword [esp + 0xc4]
mov dword [edi + 0x344], eax
je 0x509252
push 0x200
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x30]
call fcn.004745a0
push str._._
push dword [ebp + 0xc]
lea ecx, [esp + 0x30]
push str.___used_with_code_built_with__
push 0x132b468
push str._Havok_libs_built_with_version__
call fcn.0045cb80
mov ecx, eax
call fcn.0045cc40
mov ecx, eax
call fcn.0045cb80
mov ecx, eax
call fcn.0045cc90
mov ecx, eax
call fcn.0045cb80
mov ecx, dword [0x884c54]
lea edx, [esp + 0x220]
push 0xc2a
push str.WorldhkpWorld.cpp
push edx
mov eax, dword [ecx]
push 0x53c94b42
push 3
mov eax, dword [eax + 0xc]
call eax
test eax, eax
je 0x509249
int3
lea ecx, [esp + 0x28]
call fcn.0045caa0
movaps xmm0, xmmword [esp + 0x70]
sub esp, 8
movaps xmmword [edi + 0x10], xmm0
movss xmm0, dword [esp + 0xfc]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0xf8]
movss dword [esp], xmm0
call fcn.006b01d0
movss xmm2, dword [esp + 0xe0]
add esp, 8
movss xmm0, dword [esp + 0xf0]
movaps xmm4, xmm2
movss xmm1, dword [esp + 0xdc]
mulss xmm4, dword [0x719760]
movaps xmm3, xmm1
mov al, byte [esp + 0xf8]
movss dword [edi + 0xd0], xmm0
movss dword [edi + 0xd4], xmm0
movss xmm0, dword [esp + 0x10c]
movss dword [edi + 0xe0], xmm0
movaps xmm0, xmm1
mov byte [edi + 0xd8], al
mov al, byte [esp + 0x107]
divss xmm0, xmm4
mov byte [edi + 0xda], al
mov eax, dword [esp + 0x110]
mov dword [edi + 0xe4], eax
mov eax, dword [esp + 0x114]
mov dword [edi + 0xe8], eax
mov al, byte [esp + 0x118]
mov byte [edi + 0xec], al
mov eax, dword [esp + 0x11c]
mov dword [edi + 0xf0], eax
mov eax, dword [esp + 0x120]
mov dword [edi + 0xf4], eax
mov eax, dword [esp + 0x124]
mov dword [edi + 0xf8], eax
mov eax, dword [esp + 0xe0]
movss xmm5, dword [esp + 0x108]
movss xmm6, dword [0x718824]
movss dword [edi + 0xdc], xmm5
movss dword [edi + 0x248], xmm0
movaps xmm0, xmm6
divss xmm0, xmm1
mov dword [edi + 0x304], eax
mov dword [edi + 0x1f0], 0x3f800000
movss dword [edi + 0x1f8], xmm1
movaps xmm1, xmm0
movss dword [edi + 0x1f4], xmm2
mulss xmm0, xmm4
mulss xmm1, xmm2
movss dword [edi + 0x24c], xmm0
movss xmm0, dword [esp + 0x84]
movss dword [edi + 0x250], xmm0
movd xmm0, eax
movss dword [edi + 0x244], xmm1
cvtdq2ps xmm0, xmm0
mov eax, dword [esp + 0xe4]
mov dword [edi + 0x308], eax
shufps xmm1, xmm1, 0
movaps xmmword [edi + 0x220], xmm1
movaps xmm1, xmm6
divss xmm1, xmm0
movss xmm0, dword [esp + 0xe8]
mulss xmm0, xmm0
movss dword [edi + 0x310], xmm1
movaps xmm1, xmm6
divss xmm3, xmm2
movss dword [edi + 0x318], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov al, byte [esp + 0xec]
mov byte [edi + 0x314], al
mov al, byte [esp + 0x104]
movss dword [edi + 0x240], xmm3
divss xmm1, xmm0
shufps xmm3, xmm3, 0
movss dword [edi + 0x1fc], xmm4
movaps xmmword [edi + 0x230], xmm3
movss dword [edi + 0x30c], xmm1
mov byte [edi + 0x315], al
movaps xmm6, xmmword [esp + 0x70]
xorps xmm1, xmm1
mulps xmm6, xmm6
mov al, byte [esp + 0x105]
mov byte [edi + 0x316], al
mov al, byte [esp + 0x106]
mov byte [edi + 0x317], al
movaps xmm0, xmm6
mov dword [edi + 0x2fc], 0
shufps xmm0, xmm6, 0x55
addss xmm0, xmm6
mov dword [edi + 0x300], 0
shufps xmm6, xmm6, 0xaa
addss xmm6, xmm0
sqrtss xmm6, xmm6
shufps xmm6, xmm6, 0
ucomiss xmm6, xmm1
lahf
test ah, 0x44
jp 0x5094ae
movss xmm6, dword [0x7866b8]
movaps xmm0, xmm6
movaps xmm7, xmm5
mulss xmm0, dword [0x77fa2c]
xor ecx, ecx
mulss xmm7, dword [0x77fa40]
movss dword [esp + 0x20], xmm0
movaps xmm0, xmm5
mulss xmm0, xmm5
mulss xmm7, xmm7
movss dword [esp + 0x24], xmm0
movaps xmm0, xmm5
mulss xmm0, dword [0x719724]
mulss xmm5, dword [0x7866b4]
mulss xmm0, xmm0
mulss xmm5, xmm5
movss dword [esp + 0x14], xmm0
mov edx, dword [esp + 0x14]
movss dword [esp + 0x14], xmm5
mov eax, dword [esp + 0x14]
movss xmm5, dword [0x718824]
sar edx, 0x10
sar eax, 0x10
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
cmp ecx, 4
ja case.default.0x509527
jmp dword [ecx*4 + 0x50a014]
movss xmm3, dword [0x77f9a4]
movaps xmm4, xmm1
jmp 0x509581
movss xmm3, dword [0x77fa28]
movss xmm4, dword [0x7866a4]
jmp 0x509581
movss xmm3, dword [0x786698]
movss xmm4, dword [0x7866a8]
jmp 0x509581
movss xmm3, dword [0x78669c]
movss xmm4, dword [0x7866ac]
jmp 0x509581
movss xmm3, dword [0x7866a0]
movss xmm4, dword [0x7866b0]
mulss xmm3, xmm6
lea eax, [ecx*8]
sub eax, ecx
movss xmm0, dword [edi + 0x310]
movaps xmm2, xmm5
mulss xmm0, dword [0x786694]
movaps xmm1, xmm4
divss xmm2, xmm3
mulss xmm3, dword [esp + 0x20]
mulss xmm1, xmm6
movss dword [edi + eax*4 + 0x254], xmm2
mulss xmm1, xmm2
mulss xmm1, xmm0
movaps xmm0, xmm5
subss xmm0, xmm1
xorps xmm1, xmm1
comiss xmm4, xmm1
movss dword [edi + eax*4 + 0x25c], xmm0
movaps xmm0, xmm5
divss xmm0, xmm3
movss dword [edi + eax*4 + 0x258], xmm0
jbe 0x50960a
movss xmm0, dword [edi + 0x310]
mulss xmm0, dword [0x786694]
divss xmm0, xmm4
movss dword [edi + eax*4 + 0x260], xmm0
jmp 0x509615
mov dword [edi + eax*4 + 0x260], 0x7d7fffee
movss xmm0, dword [esp + 0x24]
inc ecx
mov word [edi + eax*4 + 0x26c], dx
mov edx, dword [esp + 0x14]
mov word [edi + eax*4 + 0x26e], dx
mov edx, dword [esp + 0x1c]
movss dword [edi + eax*4 + 0x264], xmm0
movss dword [edi + eax*4 + 0x268], xmm7
cmp ecx, 6
jl 0x509522
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x509661
mov ecx, eax
call fcn.0045c0c0
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x50966d
call fcn.0045c160
mov eax, dword [esp + 0xcc]
mov cl, byte [esp + 0x138]
mov dword [edi + 0x50], eax
mov al, byte [esp + 0x13a]
mov byte [edi + 0xcc], al
mov byte [edi + 0xd9], cl
test al, al
jne 0x50969f
test cl, cl
je 0x50969f
mov byte [edi + 0xd9], al
mov al, byte [esp + 0x140]
mov byte [edi + 0xb4], al
mov al, byte [esp + 0x141]
mov byte [edi + 0xb5], al
push dword [0x884adc]
call esi
push 0x10c
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
je 0x5096dd
mov ecx, eax
call fcn.006aeea0
jmp 0x5096df
xor eax, eax
mov dword [edi + 0x64], eax
push dword [0x884adc]
call esi
push 0xc
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov dword [eax + 4], 0x1ffff
mov dword [eax + 8], vtable.hkpBroadPhaseListener.0
mov dword [eax], vtable.hkpPhantomBroadPhaseListener.0
mov dword [eax + 8], vtable.hkpPhantomBroadPhaseListener.1.0
mov dword [edi + 0x68], eax
push dword [0x884adc]
call esi
push 0x10
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0x10
push edi
mov word [eax + 4], cx
mov ecx, eax
call fcn.00535740
mov dword [edi + 0x6c], eax
push dword [0x884adc]
call esi
push 0xc
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov dword [eax + 4], 0x1ffff
mov dword [eax + 8], vtable.hkpBroadPhaseListener.0
mov dword [eax], vtable.hkpBroadPhaseBorderListener.0
mov dword [eax + 8], vtable.hkpBroadPhaseBorderListener.1.0
mov ecx, dword [edi + 0x68]
mov dword [edi + 0x70], eax
test ecx, ecx
je 0x50977a
add ecx, 8
jmp 0x50977c
xor ecx, ecx
mov eax, dword [edi + 0x64]
mov dword [eax + 0x28], ecx
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x50978e
add ecx, 8
jmp 0x509790
xor ecx, ecx
mov eax, dword [edi + 0x64]
mov dword [eax + 0x44], ecx
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x5097a2
add ecx, 8
jmp 0x5097a4
xor ecx, ecx
mov eax, dword [edi + 0x64]
mov dword [eax + 0x48], ecx
mov ecx, dword [edi + 0x6c]
test ecx, ecx
je 0x5097b6
add ecx, 8
jmp 0x5097b8
xor ecx, ecx
mov eax, dword [edi + 0x64]
mov dword [eax + 0x24], ecx
mov ecx, dword [edi + 0x70]
test ecx, ecx
je 0x5097ca
add ecx, 8
jmp 0x5097cc
xor ecx, ecx
mov eax, dword [edi + 0x64]
mov dword [eax + 0x2c], ecx
mov ecx, dword [edi + 0x70]
test ecx, ecx
je 0x5097de
add ecx, 8
jmp 0x5097e0
xor ecx, ecx
mov eax, dword [edi + 0x64]
mov dword [eax + 0x64], ecx
mov ecx, dword [edi + 0x70]
test ecx, ecx
je 0x5097f2
add ecx, 8
jmp 0x5097f4
xor ecx, ecx
mov eax, dword [edi + 0x64]
mov dword [eax + 0x4c], ecx
mov ecx, dword [edi + 0x70]
test ecx, ecx
je 0x509806
add ecx, 8
jmp 0x509808
xor ecx, ecx
mov eax, dword [edi + 0x64]
mov dword [eax + 0x68], ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x50981a
lea ecx, [eax + 8]
jmp 0x50981c
xor ecx, ecx
mov eax, dword [edi + 0x64]
mov dword [eax + 0x6c], ecx
push dword [0x884adc]
call esi
push 0xc
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0xc
push edi
mov word [eax + 4], cx
mov ecx, eax
call fcn.00537730
push dword [0x884adc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x1ef0
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov ecx, 0x1ef0
push esi
push 0x4f4c40
mov word [eax + 4], cx
mov ecx, eax
call fcn.004f18d0
mov ecx, esi
mov dword [edi + 0x80], eax
call fcn.0045c160
mov eax, dword [esp + 0xb8]
test eax, eax
jne 0x5098ea
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x30
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, eax
mov eax, 0x30
mov ecx, esi
mov word [esi + 4], ax
call fcn.004ddf90
mov dword [esi], vtable.hkpNullCollisionFilter.0
mov dword [esi + 8], vtable.hkpNullCollisionFilter.1.0
mov dword [esi + 0xc], vtable.hkpNullCollisionFilter.2.0
mov dword [esi + 0x10], vtable.hkpNullCollisionFilter.3.0
mov dword [esi + 0x14], vtable.hkpNullCollisionFilter.4.0
mov dword [esi + 0x20], 1
mov dword [edi + 0x7c], esi
jmp 0x5098fd
mov ecx, eax
mov dword [edi + 0x7c], eax
call fcn.0045c0c0
mov ecx, dword [edi + 0x7c]
push edi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esp + 0xbc]
test eax, eax
jne 0x509935
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 8
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov dword [eax + 4], 0x1ffff
mov dword [eax], vtable.hkpDefaultConvexListFilter.0
mov dword [edi + 0x84], eax
jmp 0x509942
mov ecx, eax
mov dword [edi + 0x84], eax
call fcn.0045c0c0
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x80
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, eax
mov dword [esp + 0x14], eax
test esi, esi
je 0x509977
mov dword [esi + 8], 0
mov dword [esi + 0x64], 0
jmp 0x50997d
xor esi, esi
mov dword [esp + 0x14], esi
movss xmm0, dword [esp + 0xb4]
mov dword [edi + 0x78], esi
mov dword [esi + 4], 0
mov eax, dword [edi + 0x80]
mov dword [esi], eax
movss dword [esi + 0xc], xmm0
mov eax, dword [edi + 0x7c]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x14], eax
mov al, byte [esp + 0xd4]
mov byte [edi + 0x350], al
mov al, byte [esp + 0xd5]
mov byte [esi + 0x6d], al
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x10
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
je 0x5099ee
mov dword [eax], 0x3c23d70a
mov dword [eax + 4], 0x14
jmp 0x5099f0
xor eax, eax
movss xmm0, dword [esp + 0xfc]
lea edi, [esi + 0x40]
movaps xmm3, xmmword [esp + 0x90]
movaps xmm4, xmmword [esp + 0xa0]
mov dword [esi + 0x70], eax
subps xmm4, xmm3
movss dword [eax], xmm0
mov ecx, dword [esi + 0x70]
mov eax, dword [esp + 0x100]
mov edx, dword [esp + 0x14]
movaps xmm0, xmm4
movaps xmm1, xmm4
mov dword [ecx + 4], eax
add edx, 0x30
mov al, byte [esp + 0xf9]
mov byte [esi + 0x6c], al
mov eax, dword [esi]
mov dword [esi + 0x18], 0
add eax, 0x1d00
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
add esi, 0x20
unpckhps xmm0, xmmword [0x719330]
shufps xmm1, xmm0, 0xc4
rcpps xmm2, xmm1
mov ecx, dword [esp + 0x18]
push edi
push edx
push esi
movaps xmm0, xmm2
mulps xmm0, xmm1
mulps xmm0, xmm2
addps xmm2, xmm2
subps xmm2, xmm0
movaps xmm0, xmmword [0x7866c0]
mulps xmm0, xmm4
mulps xmm2, xmmword [0x7866d0]
movaps xmmword [edi], xmm2
xorps xmm2, xmm2
xorps xmm3, xmmword [0x719130]
addps xmm0, xmm3
movaps xmmword [esi], xmm3
movaps xmmword [edx], xmm0
movaps xmm1, xmmword [edi]
movaps xmm0, xmm1
unpckhps xmm0, xmm2
shufps xmm1, xmm0, 0xc4
movaps xmmword [edi], xmm1
movaps xmm1, xmmword [esi]
movaps xmm0, xmm1
unpckhps xmm0, xmm2
shufps xmm1, xmm0, 0xc4
movaps xmmword [esi], xmm1
movaps xmm1, xmmword [edx]
movaps xmm0, xmm1
unpckhps xmm0, xmm2
shufps xmm1, xmm0, 0xc4
movaps xmmword [edx], xmm1
mov ecx, dword [ecx + 0x58]
mov eax, dword [ecx]
call dword [eax + 0x78]
mov esi, dword [esp + 0x18]
push dword [esi + 0x80]
push esi
call fcn.00511430
movzx eax, byte [esp + 0x141]
add esp, 8
cmp byte [0x8cfdec], 0
mov ecx, 3
mov dword [esi + 0xb8], 0
cmovne eax, ecx
mov dword [esp + 0x18], eax
movsx eax, al
mov dword [esi + 0xfc], eax
sub eax, 1
je 0x509bcd
sub eax, 1
je 0x509bc4
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub eax, 1
jne 0x509be0
push dword [0x884adc]
call edi
push 0x18
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
je 0x509b75
push 0xfa0
mov ecx, eax
call fcn.00462be0
jmp 0x509b77
xor eax, eax
mov dword [esi + 0xbc], eax
push dword [0x884adc]
call edi
push 0x18
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
je 0x509ba3
push 0xfa0
mov ecx, eax
call fcn.00462be0
jmp 0x509ba5
xor eax, eax
push esi
mov dword [esi + 0xc8], eax
call dword [0x8cfd84]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x140]
mov dword [esi + 0xb8], eax
jmp 0x509bdd
push esi
call dword [0x8cfd80]
jmp 0x509bd4
push esi
call dword [0x8cfd7c]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 8], eax
add esp, 4
push dword [0x884adc]
call edi
push 0x18
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
je 0x509c06
push 0xfa0
mov ecx, eax
call fcn.00462be0
jmp 0x509c08
xor eax, eax
movss xmm0, dword [esp + 0x144]
mov dword [esi + 0xc4], eax
mov eax, dword [esi + 8]
movss dword [eax + 0x24], xmm0
movaps xmm5, xmmword [esi + 0x10]
mulps xmm5, xmm5
movaps xmm0, xmm5
shufps xmm0, xmm5, 0x55
addss xmm0, xmm5
shufps xmm5, xmm5, 0xaa
addss xmm5, xmm0
xorps xmm0, xmm0
sqrtss xmm5, xmm5
shufps xmm5, xmm5, 0
ucomiss xmm5, xmm0
lahf
test ah, 0x44
jp 0x509c55
movss xmm5, dword [0x7866b8]
mov eax, dword [esi + 0x78]
movss xmm4, dword [esp + 0x128]
movss xmm3, dword [esp + 0x12c]
movss xmm2, dword [esp + 0x130]
movss xmm1, dword [esp + 0x134]
cmp byte [esp + 0x18], 2
mov ecx, dword [esi + 0x80]
movss dword [esi + 0x100], xmm4
movss dword [esi + 0x104], xmm3
movss dword [esi + 0x108], xmm2
movss dword [esi + 0x10c], xmm1
movss dword [esp + 0x34], xmm5
movss xmm0, dword [eax + 0xc]
setge byte [esp + 0x5c]
cmp byte [esp + 0xd4], 2
mov al, byte [esp + 0xf8]
movss dword [esp + 0x38], xmm0
sete byte [esp + 0x5d]
movss xmm0, dword [esp + 0xc8]
cmp byte [esp + 0xd4], 1
mov byte [esp + 0x5f], al
lea eax, [esp + 0x34]
movss dword [esp + 0x3c], xmm0
setge byte [esp + 0x5e]
movss xmm0, dword [esp + 0xc0]
push eax
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x48], xmm4
movss dword [esp + 0x4c], xmm3
movss dword [esp + 0x50], xmm2
movss dword [esp + 0x54], xmm1
mov dword [esp + 0x58], 0x30001
mov dword [esp + 0x5c], 0x50004
call fcn.004f2380
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x78]
add ecx, 0x1d00
mov dword [eax + 0x60], ecx
push dword [0x884adc]
call edi
push 0x84
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0x84
push esi
mov word [eax + 4], cx
mov ecx, eax
call fcn.00535bf0
mov dword [esi + 0x20], eax
mov ecx, 0xffff
mov word [eax + 0x20], cx
mov eax, dword [esi + 0x20]
and byte [eax + 0x26], 0xf3
mov eax, dword [esi + 0x20]
and byte [eax + 0x26], 0xfc
cmp byte [esi + 0xcc], 0
jne 0x509df6
push dword [0x884adc]
call edi
push 0x84
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0x84
push esi
mov word [eax + 4], cx
mov ecx, eax
call fcn.00535bf0
mov ecx, dword [esi + 0x30]
mov edx, eax
lea eax, [esi + 0x28]
mov dword [esp + 0x1c], edx
and ecx, 0x3fffffff
cmp dword [eax + 4], ecx
jne 0x509de5
push 4
push eax
push 0x7d8954
call fcn.00467c00
mov edx, dword [esp + 0x28]
lea eax, [esi + 0x28]
add esp, 0xc
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [eax + ecx*4], edx
inc dword [esi + 0x2c]
xor eax, eax
mov word [edx + 0x20], ax
lea ecx, [esp + 0x150]
call fcn.00535530
push dword [0x884adc]
mov byte [esp + 0x210], 5
mov dword [esp + 0x1e4], 0
call edi
push 0x220
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0x220
mov word [eax + 4], cx
lea ecx, [esp + 0x150]
push ecx
mov ecx, eax
call fcn.005115f0
push 1
push eax
mov ecx, esi
mov dword [esi + 0x24], eax
call fcn.0050a350
mov ecx, dword [esi + 0x24]
call fcn.0045c160
cmp byte [esp + 0x88], 3
lea ecx, [esi + 0x1e0]
mov dword [ecx], 0
mov dword [ecx + 4], 0x3c888889
mov dword [ecx + 8], 0x3c888889
mov dword [ecx + 0xc], 0x426fffff
mov eax, dword [esi + 0x78]
mov dword [eax + 0x68], ecx
je 0x509ec7
push dword [0x884adc]
call edi
push 0x44
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
push dword [esp + 0x89]
mov ecx, 0x44
mov word [eax + 4], cx
movsx ecx, byte [esp + 0x8c]
push ecx
push esi
mov ecx, eax
call fcn.00536280
mov dword [esi + 0x1d4], eax
jmp 0x509ed1
mov dword [esi + 0x1d4], 0
push dword [0x884adc]
call edi
push 0x10
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0x10
mov word [eax + 4], cx
mov ecx, eax
call fcn.00539640
mov dword [esi + 0x4c], eax
mov ecx, eax
push esi
mov edx, dword [eax]
call dword [edx + 0xc]
cmp byte [esp + 0x148], 0
je 0x509f13
push esi
call fcn.005107a0
add esp, 4
cmp byte [esp + 0xb0], 0
je 0x509f3d
mov eax, dword [0x8cfdf8]
test eax, eax
je 0x509f3d
push 0
push esi
call eax
mov dword [esi + 0x5c], eax
add esp, 8
mov al, byte [esp + 0xb3]
mov byte [esi + 0x60], al
jmp 0x509f7e
cmp byte [esp + 0xb1], 0
je 0x509f77
mov ecx, dword [0x8cfdf4]
test ecx, ecx
je 0x509f77
movsx eax, byte [esp + 0xb2]
push ecx
mov dword [esp], 0
push eax
push esi
call ecx
mov dword [esi + 0x5c], eax
add esp, 0xc
mov al, byte [esp + 0xb3]
mov byte [esi + 0x60], al
jmp 0x509f7e
mov dword [esi + 0x5c], 0
cmp byte [esp + 0x18], 3
je 0x509f90
lea ecx, [esi + 0xa8]
call fcn.00462810
push dword [0x884adc]
call edi
push 0x120
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edi, eax
test edi, edi
je 0x509fd3
push 0x120
push 0
push edi
call fcn.00609f40
mov dword [edi + 0x98], 0
add esp, 0xc
mov dword [edi + 0xf4], 0
jmp 0x509fd5
xor edi, edi
mov eax, dword [esp + 0xcc]
mov dword [esi + 0x74], edi
test eax, eax
je 0x509fea
mov ecx, eax
call fcn.0045c160
mov ecx, dword [esp + 0xbc]
test ecx, ecx
je 0x509ffa
call fcn.0045c160
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x50a00a
call fcn.0045c160
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8