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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [0x10156a5c]
push esi
push edi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx + 0x2f94]
sub eax, 1
mov dword [ebp - 4], eax
js 0x100511be
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x2f9c]
cmp dword [ecx + edi + 4], 7
jne 0x100511b3
mov esi, ecx
mov eax, 0x66666667
sub ecx, esi
add ecx, edi
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*4]
lea edx, [esi + eax*4]
mov eax, dword [ebx + 0x2f94]
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [eax*4 - 0x14]
push eax
lea eax, [edx + 0x14]
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 4]
add esp, 0xc
dec dword [ebx + 0x2f94]
dec eax
sub edi, 0x14
mov dword [ebp - 4], eax
test eax, eax
jns 0x10051160
xor esi, esi
cmp dword [ebx + 0x2f94], esi
jle 0x100511f4
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x2f9c]
add eax, edi
cmp dword [eax + 4], 0
jne 0x100511e8
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x2f94]
jl 0x100511d0
mov eax, dword [0x10156a5c]
cmp byte [eax + 0xb4], 0
je 0x1005120f
test byte [eax + 0xc], 2
jne 0x1005120f
mov byte [eax + 0xb4], 0
call fcn.100570a0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x1b48]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x1b54], 1
mov word [ebx + 0x2f2e], ax
mov dword [ebx + 0x1b9c], eax
addsd xmm0, qword [ebx + 0x1b40]
movsd qword [ebx + 0x1b40], xmm0
mov ecx, dword [ebx + 0x2f44]
test ecx, ecx
jns 0x1005126e
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x2f40]
call fcn.100587b0
mov dword [ebx + 0x2f40], 0
mov ecx, 0x78
mov eax, dword [ebx + 0x31e8]
xorps xmm3, xmm3
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x101138a0]
movss xmm4, dword [0x1010f980]
subss xmm0, dword [ebx + eax*4 + 0x3008]
movss dword [ebp - 4], xmm2
addss xmm0, dword [ebx + 0x31f0]
movss dword [ebx + 0x31f0], xmm0
movss dword [ebx + eax*4 + 0x3008], xmm1
mov eax, dword [ebx + 0x31e8]
inc eax
movss xmm1, dword [ebx + 0x31f0]
cdq
idiv ecx
mov eax, dword [ebx + 0x31ec]
inc eax
mov dword [ebx + 0x31e8], edx
cmp eax, ecx
cmovl ecx, eax
comiss xmm1, xmm3
mov dword [ebx + 0x31ec], ecx
jbe 0x10051308
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm4
divss xmm0, xmm1
jmp 0x1005130b
movaps xmm0, xmm2
movss dword [ebx + 0x358], xmm0
mov esi, dword [0x10156a5c]
mov eax, dword [esi + 0x1d50]
mov edx, dword [eax]
mov dword [edx], 5
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
cmp dword [esi + 0x1d48], 0
jle 0x1005141f
xor edi, edi
xor ebx, ebx
mov eax, dword [esi + 0x1d50]
movaps xmm2, xmm3
inc ebx
mov edx, dword [edi + eax]
add edi, 4
mov eax, dword [edx + 0x88]
mov ecx, dword [edx + 0x8c]
mov dword [edx + 0x78], eax
mov eax, dword [edx + 0x90]
mov dword [edx + 0x7c], ecx
mov ecx, dword [edx + 0x94]
mov dword [edx + 0x80], eax
mov dword [edx + 0x84], ecx
mov dword [edx + 0x90], 0
mov dword [edx + 0x94], 0
mov dword [edx + 0x88], 0
mov dword [edx + 0x8c], 0
movss xmm0, dword [edx + 0x7c]
addss xmm0, dword [edx + 8]
movss xmm1, dword [edx + 0x78]
addss xmm1, dword [edx + 4]
movss dword [edx + 0x18], xmm0
movss xmm0, dword [edx + 0xc]
movss dword [edx + 0x14], xmm1
movaps xmm1, xmm3
subss xmm0, dword [edx + 0x78]
addss xmm0, dword [edx + 0x80]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x10]
subss xmm0, dword [edx + 0x7c]
addss xmm0, dword [edx + 0x84]
movss dword [edx + 0x1c], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x20], xmm1
cmp ebx, dword [esi + 0x1d48]
jl 0x10051352
movss xmm2, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x98]
mov byte [eax + 0x10], 1
mov esi, dword [0x10156a5c]
mov edi, dword [esi + 0xa4]
test edi, edi
jne 0x10051444
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x3c]
mov edi, dword [eax]
movss xmm1, dword [esi + 0x9c]
movaps xmm0, xmm4
mov ecx, dword [esi + 0x1ba8]
mov dword [esi + 0x1940], edi
mulss xmm1, dword [edi + 0x10]
mulss xmm1, dword [edi + 0x44]
maxss xmm0, xmm1
movss dword [esi + 0x1948], xmm0
test ecx, ecx
je 0x1005149c
mov eax, dword [0x10156a5c]
movss xmm3, dword [ecx + 0x23c]
mulss xmm3, dword [eax + 0x1948]
mov eax, dword [ecx + 0x2d8]
test eax, eax
je 0x1005149c
mulss xmm3, dword [eax + 0x23c]
movss xmm4, dword [0x1011442c]
movaps xmm7, xmm2
movss dword [esi + 0x1944], xmm3
movaps xmm6, xmm2
mov edx, dword [edi + 0x30]
movaps xmm5, xmm4
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x30]
mov dword [esi + 0x194c], eax
lea eax, [edx + 0x58]
mov dword [esi + 0x1950], ecx
mov dword [esi + 0x1b3c], eax
mov dword [esi + 0x1954], edi
movss dword [esi + 0x1958], xmm3
mov edx, dword [ebx + 0x1d48]
test edx, edx
jle 0x10051535
mov ecx, dword [ebx + 0x1d50]
mov eax, dword [ecx]
movss xmm3, dword [eax + 4]
comiss xmm7, xmm3
movss xmm2, dword [eax + 8]
movaps xmm0, xmm3
addss xmm0, dword [eax + 0xc]
movaps xmm1, xmm2
addss xmm1, dword [eax + 0x10]
jbe 0x10051515
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x1005151d
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x10051525
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x1005152d
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x100514f1
mov eax, dword [ebx + 0x15e8]
movss dword [ebp - 0x14], xmm7
movss dword [ebp - 0x10], xmm6
movss dword [ebp - 0xc], xmm4
movss dword [ebp - 8], xmm5
movups xmm0, xmmword [ebp - 0x14]
push ecx
lea ecx, [ebx + 0x194c]
mov dword [ebx + 0x195c], eax
movups xmmword [ebx + 0x1964], xmm0
movss xmm0, dword [ebx + 0x15ec]
movss dword [esp], xmm0
call fcn.1005fb40
xor edx, edx
mov dword [ebx + 0x1974], 0
cmp byte [ebx + 0x15e4], dl
je 0x1005159c
mov dword [ebx + 0x1974], 1
mov edx, 1
cmp byte [ebx + 0x15e5], 0
mov ecx, edx
je 0x100515be
mov eax, dword [ebx + 0x1940]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x100515be
or ecx, 2
mov dword [ebx + 0x1974], ecx
cmp byte [ebx + 0x15e6], 0
je 0x100515d0
or ecx, 4
mov dword [ebx + 0x1974], ecx
test byte [ebx + 0xc], 8
je 0x100515df
or ecx, 8
mov dword [ebx + 0x1974], ecx
xor esi, esi
cmp dword [ebx + 0x1d48], esi
jle 0x10051615
xor edi, edi
nop dword [eax + eax]
mov eax, dword [ebx + 0x1d50]
push 0x2c
push 0
mov eax, dword [edi + eax]
add eax, 0x34
push eax
call sub.VCRUNTIME140.dll_memset
inc esi
lea edi, [edi + 4]
add esp, 0xc
cmp esi, dword [ebx + 0x1d48]
jl 0x100515f0
cmp byte [ebx + 0x1ec4], 0
je 0x1005164f
mov eax, dword [ebx + 0x1edc]
cmp eax, dword [ebx + 0x1be0]
jne 0x1005164f
mov ecx, dword [0x10156a5c]
cmp dword [ecx + 0x1be0], eax
jne 0x10051640
mov dword [ecx + 0x1be4], eax
cmp dword [ecx + 0x1c1c], eax
jne 0x1005164f
mov byte [ecx + 0x1c20], 1
cmp dword [ebx + 0x1bd0], 0
jne 0x10051664
mov dword [ebx + 0x1bd8], 0
jmp 0x10051676
mov eax, dword [ebx + 0x1bcc]
test eax, eax
je 0x10051680
cmp dword [ebx + 0x1be0], eax
jne 0x10051680
mov dword [ebx + 0x1bdc], 0
mov eax, dword [ebx + 0x1bcc]
test eax, eax
je 0x100516ba
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x1bd8]
movss dword [ebx + 0x1bd8], xmm0
cmp dword [ebx + 0x1be0], eax
je 0x100516ba
addss xmm1, dword [ebx + 0x1bdc]
movss dword [ebx + 0x1bdc], xmm1
mov dword [ebx + 0x1bd0], eax
mov al, byte [ebx + 0x1bd5]
mov byte [ebx + 0x1bd6], al
mov eax, dword [ebx + 0x1be0]
mov dword [ebx + 0x1bcc], 0
mov word [ebx + 0x1bd4], 0
mov byte [ebx + 0x1bd7], 0
cmp dword [ebx + 0x1be4], eax
je 0x10051705
cmp dword [ebx + 0x1c1c], eax
jne 0x10051705
test eax, eax
je 0x10051705
call fcn.100498a0
mov ecx, dword [ebx + 0x1be0]
test ecx, ecx
je 0x10051724
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x1be8]
movss dword [ebx + 0x1be8], xmm0
mov eax, dword [ebx + 0x1c10]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x1c2c]
mov dword [ebx + 0x1c24], eax
mov al, byte [ebx + 0x1bf0]
mov byte [ebx + 0x1c21], al
mov eax, dword [ebx + 0x2ec0]
movss dword [ebx + 0x1c2c], xmm0
mov dword [ebx + 0x1c1c], ecx
mov dword [ebx + 0x1be4], 0
mov byte [ebx + 0x1bf1], 0
mov byte [ebx + 0x1c20], 0
mov byte [ebx + 0x1bec], 0
test eax, eax
je 0x1005178e
cmp ecx, eax
je 0x1005178e
mov dword [ebx + 0x2ec0], 0
test ecx, ecx
jne 0x100517aa
mov dword [ebx + 0x1bf4], ecx
mov dword [ebx + 0x1bf8], ecx
mov dword [ebx + 0x1c00], ecx
mov dword [ebx + 0x1c04], ecx
cmp byte [ebx + 0x1518], 0
mov eax, dword [ebx + 0x1f28]
mov dword [ebx + 0x1f2c], eax
mov dword [ebx + 0x1f28], 0
mov dword [ebx + 0x1f24], 0x7f7fffff
mov word [ebx + 0x1ec5], 0
mov dword [ebx + 0x1f34], 0
je 0x10051862
push 0x200
lea eax, [ebx + 0x100]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebx + 0x474]
mov ecx, 0x200
nop dword [eax + eax]
mov dword [eax + 0x800], 0xbf800000
lea eax, [eax + 4]
mov dword [eax - 4], 0xbf800000
sub ecx, 1
jne 0x10051810
mov dword [ebx + 0xfc], ecx
lea eax, [ebx + 0x1474]
mov dword [ebx + 0x380], ecx
mov dword [ebx + 0x37c], ecx
mov ecx, 0x14
mov dword [eax + 0x50], 0xbf800000
lea eax, [eax + 4]
mov dword [eax - 4], 0xbf800000
sub ecx, 1
jne 0x10051846
mov byte [ebx + 0x1518], cl
mov esi, dword [0x10156a5c]
lea edi, [ebx + 0xc74]
xor eax, eax
cmp byte [esi + 0xfc], al
setne al
mov ecx, eax
or ecx, 2
cmp byte [esi + 0xfd], 0
cmove ecx, eax
mov edx, ecx
or edx, 4
cmp byte [esi + 0xfe], 0
cmove edx, ecx
mov ecx, 0x200
mov eax, edx
or eax, 8
cmp byte [esi + 0xff], 0
cmove eax, edx
mov dword [ebx + 0x37c], eax
lea eax, [ebx + 0x474]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
nop dword [eax]
cmp byte [ebx + ecx + 0x100], 0
je 0x100518e2
movss xmm0, dword [eax]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x100518db
xorps xmm0, xmm0
jmp 0x100518ea
addss xmm0, dword [ebx + 0x18]
jmp 0x100518ea
movss xmm0, dword [0x10113c10]
movss dword [eax], xmm0
inc ecx
add eax, 4
cmp ecx, 0x200
jl 0x100518c0
call fcn.1004ec80
call fcn.100566b0
call fcn.10056440
mov esi, dword [0x10156a5c]
mov edx, dword [esi + 0x1bb4]
test edx, edx
je 0x10051a0e
mov eax, dword [esi + 0x1be0]
mov dword [esi + 0x1be4], eax
cmp dword [esi + 0x1c1c], eax
jne 0x10051938
mov byte [esi + 0x1c20], 1
cmp byte [esi + 0xec], 0
mov edx, dword [edx + 0x2e0]
je 0x10051a02
mov ecx, dword [0x10156a5c]
lea eax, [esi + 0xe4]
mov edi, eax
test eax, eax
jne 0x10051963
lea edi, [ecx + 0xe4]
movss xmm0, dword [edi]
movss xmm1, dword [0x10114428]
comiss xmm0, xmm1
movss xmm2, dword [edi + 4]
jb 0x10051a02
comiss xmm2, xmm1
jb 0x10051a02
movss xmm1, dword [eax]
subss xmm1, dword [esi + 0x1c08]
movss xmm0, dword [edx + 0xc]
movss xmm2, dword [eax + 4]
subss xmm2, dword [esi + 0x1c0c]
ucomiss xmm0, xmm1
movss dword [ebp - 0xc], xmm1
movss dword [ebp - 8], xmm2
lahf
test ah, 0x44
jp 0x100519c5
movss xmm0, dword [edx + 0x10]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x100519f2
test dword [edx + 8], 0x100
jne 0x100519e3
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x2f60]
jb 0x100519e3
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2f60], eax
push 1
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.10055710
add esp, 0xc
push dword [esi + 0x1bb4]
call fcn.1004b500
add esp, 4
jmp 0x10051a46
mov dword [esi + 0x1bb4], 0
jmp 0x10051a41
mov ecx, dword [esi + 0x1c10]
test ecx, ecx
je 0x10051a46
mov eax, dword [esi + 0x1be0]
cmp dword [ecx + 0x50], eax
jne 0x10051a46
mov dword [esi + 0x1be4], eax
cmp dword [esi + 0x1c1c], eax
jne 0x10051a38
mov byte [esi + 0x1c20], 1
cmp byte [esi + 0xec], 0
jne 0x10051a46
call fcn.100498a0
mov eax, dword [0x10156a5c]
mov edx, dword [eax + 0x1d2c]
sub edx, 1
js 0x10051a7c
mov eax, dword [eax + 0x1d34]
lea ecx, [edx + edx*8]
lea eax, [eax + ecx*4]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x10051a74
test dword [ecx + 8], 0x8000000
jne 0x10051a96
sub eax, 0x24
sub edx, 1
jns 0x10051a65
cmp dword [ebx + 0x1ea4], 0
je 0x10051ab5
movss xmm0, dword [ebx + 0x1eb4]
comiss xmm0, dword [0x1011387c]
jbe 0x10051ab5
movss xmm1, dword [ebx + 0x18]
mulss xmm1, dword [0x10113888]
addss xmm1, dword [ebx + 0x1ebc]
minss xmm1, dword [0x1010f980]
jmp 0x10051ad6
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x10113834]
movss xmm1, dword [ebx + 0x1ebc]
subss xmm1, xmm0
maxss xmm1, dword [0x1011387c]
movss dword [ebx + 0x1ebc], xmm1
mov dword [ebx + 0x1ec0], 0
mov dword [ebx + 0x31fc], 0xffffffff
mov dword [ebx + 0x31f8], 0xffffffff
mov dword [ebx + 0x31f4], 0xffffffff
mov dword [ebx + 0x2f4c], 0x3f800000
mov dword [ebx + 0x2f50], 0x3f800000
call fcn.10056c50
cmp byte [ebx + 0x1b57], 0
jne 0x10051b4f
movss xmm1, dword [ebx + 0xb8]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x10051b4f
movsd xmm0, qword [ebx + 0x1b40]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 4], xmm0
jmp 0x10051b54
movss xmm0, dword [ebp - 4]
xor edi, edi
cmp dword [ebx + 0x1b60], edi
je 0x10051d1c
xor esi, esi
mov dword [ebp - 8], esi
nop word [eax + eax]
mov eax, dword [ebx + 0x1b68]
xor ecx, ecx
mov esi, dword [esi + eax]
mov al, byte [esi + 0x8a]
mov byte [esi + 0x8b], al
mov word [esi + 0x96], cx
mov byte [esi + 0x8a], cl
mov byte [esi + 0x8c], cl
test al, al
jne 0x10051d01
cmp byte [esi + 0x324], cl
jne 0x10051d01
comiss xmm0, dword [esi + 0x21c]
jbe 0x10051d01
mov ecx, dword [esi + 0x244]
mov byte [esi + 0x324], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x31c], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x320], eax
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x10051c21
mov dword [esi + 0xc8], 0
mov dword [esi + 0xc4], 0
mov eax, dword [0x10156a5c]
test eax, eax
je 0x10051c07
dec dword [eax + 0x36c]
push dword [0x10156a64]
push ecx
call dword [0x101522fc]
add esp, 8
mov dword [esi + 0xcc], 0
mov ecx, dword [esi + 0x244]
call fcn.10060320
mov ecx, dword [esi + 0x168]
test ecx, ecx
je 0x10051c73
mov dword [esi + 0x164], 0
mov dword [esi + 0x160], 0
mov eax, dword [0x10156a5c]
test eax, eax
je 0x10051c59
dec dword [eax + 0x36c]
push dword [0x10156a64]
push ecx
call dword [0x101522fc]
add esp, 8
mov dword [esi + 0x168], 0
mov ecx, dword [esi + 0x190]
test ecx, ecx
je 0x10051cba
mov dword [esi + 0x18c], 0
mov dword [esi + 0x188], 0
mov eax, dword [0x10156a5c]
test eax, eax
je 0x10051ca0
dec dword [eax + 0x36c]
push dword [0x10156a64]
push ecx
call dword [0x101522fc]
add esp, 8
mov dword [esi + 0x190], 0
mov ecx, dword [esi + 0x19c]
test ecx, ecx
je 0x10051d01
mov dword [esi + 0x198], 0
mov dword [esi + 0x194], 0
mov eax, dword [0x10156a5c]
test eax, eax
je 0x10051ce7
dec dword [eax + 0x36c]
push dword [0x10156a64]
push ecx
call dword [0x101522fc]
add esp, 8
mov dword [esi + 0x19c], 0
mov esi, dword [ebp - 8]
inc edi
movss xmm0, dword [ebp - 4]
add esi, 4
mov dword [ebp - 8], esi
cmp edi, dword [ebx + 0x1b60]
jne 0x10051b70
xor edi, edi
cmp dword [ebx + 0x1f98], edi
jle 0x10051d76
xor esi, esi
xorps xmm1, xmm1
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebx + 0x1fa0]
movss xmm0, dword [ecx + eax]
comiss xmm0, xmm1
jb 0x10051d61
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x10051d61
mov eax, dword [ebx + 0x1f80]
add eax, esi
push eax
call fcn.1006c960
mov ecx, dword [ebp - 8]
add esp, 4
xorps xmm1, xmm1
inc edi
add ecx, 4
add esi, 0x1c8
mov dword [ebp - 8], ecx
cmp edi, dword [ebx + 0x1f98]
jl 0x10051d30
xor esi, esi
cmp dword [ebx + 0x1f6c], esi
jle 0x10051dc4
xor edi, edi
xorps xmm1, xmm1
nop word [eax + eax]
mov eax, dword [ebx + 0x1f74]
add eax, edi
movss xmm0, dword [eax + 4]
comiss xmm0, xmm1
jb 0x10051db8
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x10051db8
push eax
call fcn.1006ca40
add esp, 4
xorps xmm1, xmm1
inc esi
add edi, 0x68
cmp esi, dword [ebx + 0x1f6c]
jl 0x10051d90
cmp byte [ebx + 0x1b57], 0
je 0x10051e6a
mov esi, dword [0x10156a5c]
mov ecx, dword [esi + 0x1d1c]
test ecx, ecx
je 0x10051e1e
mov dword [esi + 0x1d18], 0
mov dword [esi + 0x1d14], 0
mov eax, dword [0x10156a5c]
test eax, eax
je 0x10051e04
dec dword [eax + 0x36c]
push dword [0x10156a64]
push ecx
call dword [0x101522fc]
add esp, 8
mov dword [esi + 0x1d1c], 0
mov ecx, dword [esi + 0x1d28]
test ecx, ecx
je 0x10051e65
mov dword [esi + 0x1d24], 0
mov dword [esi + 0x1d20], 0
mov eax, dword [0x10156a5c]
test eax, eax
je 0x10051e4b
dec dword [eax + 0x36c]
push dword [0x10156a64]
push ecx
call dword [0x101522fc]
add esp, 8
mov dword [esi + 0x1d28], 0
call fcn.1006c760
mov eax, dword [ebx + 0x1d54]
mov byte [ebx + 0x1b57], 0
test eax, eax
je 0x10051fce
cmp byte [eax + 0x8b], 0
jne 0x10051fce
mov edi, dword [0x10156a5c]
mov edx, dword [edi + 0x1b6c]
sub edx, 1
js 0x10051ed0
mov eax, dword [edi + 0x1b74]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x10051ec8
cmp byte [ecx + 0x8b], 0
je 0x10051ec8
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x10051f39
sub esi, 4
sub edx, 1
jns 0x10051ea6
mov esi, edi
cmp dword [esi + 0x1d54], 0
je 0x10051f6a
mov dword [esi + 0x1d54], 0
mov dword [esi + 0x1d58], 0
mov dword [esi + 0x1d5c], 0
mov byte [esi + 0x1d90], 0
mov dword [esi + 0x1d8c], 0
mov word [esi + 0x1dac], 0
mov byte [esi + 0x1d95], 0
mov eax, dword [0x10156a5c]
cmp byte [eax + 0x1dad], 0
jne 0x10051f5c
cmp byte [eax + 0x1d95], 0
jne 0x10051f5c
xor cl, cl
jmp 0x10051f5e
mov eax, dword [ecx + 0x2f0]
test eax, eax
je 0x10051f4c
cmp byte [eax + 0x8b], 0
jne 0x10051f4e
mov eax, ecx
push eax
call fcn.1004b500
add esp, 4
jmp 0x10051fce
mov cl, 1
mov byte [eax + 0x1d94], cl
mov edi, dword [0x10156a5c]
mov eax, dword [edi + 0x1d2c]
test eax, eax
jle 0x10051fa4
mov ecx, dword [edi + 0x1d30]
test ecx, ecx
jns 0x10051f9a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x1d2c]
call fcn.100588d0
mov dword [edi + 0x1d2c], 0
cmp dword [esi + 0x1be0], 0
je 0x10051fce
mov eax, dword [esi + 0x1c10]
test eax, eax
je 0x10051fce
cmp dword [eax + 0x2e0], 0
je 0x10051fce
cmp byte [esi + 0x1bee], 0
jne 0x10051fce
call fcn.100498a0
mov ecx, dword [ebx + 0x1b88]
test ecx, ecx
jns 0x10051ff4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x1b84]
call fcn.100589e0
mov dword [ebx + 0x1b84], 0
mov ecx, dword [ebx + 0x1d3c]
test ecx, ecx
jns 0x10052024
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x1d38]
call fcn.100588d0
lea esi, [ebx + 0x1d14]
mov dword [ebx + 0x1d38], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10052053
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100587b0
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x10052068
push 8
mov ecx, esi
call fcn.100587b0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0
lea ecx, [ebx + 0x1d20]
inc dword [esi]
call fcn.10058aa0
mov edi, dword [0x10156a5c]
cmp byte [edi + 0x2fd8], 0
mov dword [edi + 0x2fdc], 0
je 0x1005216a
mov eax, dword [0x10156a5c]
mov ecx, dword [edi + 0x1bd0]
mov dword [ebp - 4], ecx
mov dword [eax + 0x1ec0], 7
mov esi, dword [0x10156a5c]
mov eax, dword [esi + 0x6c]
test eax, eax
js 0x100520e4
push 1
push eax
call fcn.1004cd50
mov ecx, dword [ebp - 4]
add esp, 8
test al, al
je 0x100520e4
mov byte [edi + 0x2fd8], 0
mov esi, dword [0x10156a5c]
movss xmm0, dword [esi + 0x410]
ucomiss xmm0, dword [0x1011387c]
lahf
test ah, 0x44
jp 0x10052110
test ecx, ecx
je 0x10052110
mov dword [edi + 0x2fdc], ecx
mov byte [edi + 0x2fd8], 0
mov esi, dword [0x10156a5c]
or dword [esi + 0x1c84], 0x40
push 0
push 0
mov dword [esi + 0x1cd8], 0x3f19999a
call fcn.10048940
mov esi, dword [ebp - 4]
push esi
push str.HoveredId:_0x_08X
call fcn.1006bbd0
push str.Press_ESC_to_abort_picking.
call fcn.1006bbd0
mov ecx, 0x1600
test esi, esi
mov eax, 0x15f0
cmove eax, ecx
add eax, dword [0x10156a5c]
push str.Click_to_break_in_debugger_
push eax
call fcn.1006bbf0
add esp, 0x1c
call fcn.1004a4b0
mov esi, dword [0x10156a5c]
mov dword [esi + 0x1bc8], 0
mov eax, dword [esi + 0x2ff0]
inc eax
cmp dword [esi + 0x1b48], eax
jne 0x10052268
mov edi, dword [esi + 0x1bd0]
test edi, edi
jne 0x1005219d
mov edi, dword [esi + 0x1be0]
cmp dword [esi + 0x2ff8], edi
je 0x100521ea
lea eax, [esi + 0x2ffc]
mov dword [esi + 0x2ff8], edi
mov dword [esi + 0x2ff4], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x100521e4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x2ffc]
call fcn.10058960
lea eax, [esi + 0x2ffc]
mov dword [eax], 0
test edi, edi
je 0x10052268
mov eax, dword [esi + 0x2ff4]
test eax, eax
js 0x10052231
mov ecx, eax
cmp eax, dword [esi + 0x2ffc]
jge 0x10052244
mov ecx, dword [esi + 0x3004]
mov edx, eax
shl edx, 6
cmp byte [edx + ecx + 5], 0
jne 0x1005222a
mov ebx, dword [esi + 0x3004]
mov ecx, eax
cmp byte [edx + ebx + 4], 2
mov ebx, dword [ebp - 0x18]
jle 0x10052244
inc eax
mov dword [esi + 0x2ff4], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x10052240
mov dword [esi + 0x1bc8], edi
jmp 0x10052268
test ecx, ecx
js 0x10052268
cmp ecx, dword [esi + 0x2ffc]
jge 0x10052268
mov eax, dword [esi + 0x3004]
shl ecx, 6
mov eax, dword [ecx + eax]
mov dword [esi + 0x1bc8], eax
mov eax, dword [esi + 0x3004]
inc byte [ecx + eax + 4]
mov byte [ebx + 0x1b55], 1
mov eax, dword [0x10156a5c]
push 0
push 0
push str.DebugDefault
or dword [eax + 0x1c84], 2
mov dword [eax + 0x1ca4], 0x43c80000
mov dword [eax + 0x1ca8], 0x43c80000
mov dword [eax + 0x1c8c], 4
call fcn.10046420
xor esi, esi
add esp, 0xc
cmp dword [ebx + 0x2f94], esi
jle 0x100522e4
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x2f9c]
add eax, edi
cmp dword [eax + 4], 1
jne 0x100522d8
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x2f94]
jl 0x100522c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret