Function at 0x1007cad0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082fee
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x100b221c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xfc], edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0xe8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 4], 0
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x94]
mov edx, dword [eax + 0xcc]
add edx, eax
mov dword [ebp - 0x68], 7
xor eax, eax
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], ax
cmp word [edx], ax
jne 0x1007cb5e
xor ecx, ecx
jmp 0x1007cb72
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007cb63
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x7c]
call fcn.100075f0
mov byte [ebp - 4], 1
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x94]
mov ecx, dword [eax + 0xc8]
add ecx, eax
mov eax, dword [edx + 0x98]
cmp dword [ebp - 0x68], 8
mov dword [ebp - 0x15c], ecx
lea ecx, [ebp - 0x7c]
cmovae ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x104], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x118], eax
mov eax, dword [edx + 0x34]
push ecx
push eax
mov dword [ebp - 0x110], eax
call fcn.1007c6a0
mov esi, eax
lea eax, [ebp - 0x110]
push eax
push dword [0x100b4eb4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
js 0x1007d54c
mov ecx, esi
call fcn.1007bf80
xor ecx, ecx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x134], esi
mov esi, dword [edi + 8]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x128], 1
cmp dword [esi + 0x3c], ecx
jne 0x1007cc33
xor edi, edi
jmp 0x1007cc39
movzx eax, word [eax]
movsx edi, ax
mov ecx, dword [esi + 0x94]
mov edx, dword [ecx + 4]
sub edx, dword [ecx + 0x10]
mov dword [ebp - 0x130], edx
test di, di
jne 0x1007cc5d
mov eax, dword [ecx + 0x28]
imul eax, edx
xor edx, edx
div dword [ecx + 0x2c]
jmp 0x1007cc6b
mov eax, dword [ecx + 0x60]
xor edx, edx
imul eax, dword [ecx + 0x18]
movsx ecx, di
div ecx
mov dword [ebp - 0x12c], eax
cmp dword [esi + 0x48], 0
mov dword [ebp - 0x100], 0
je 0x1007cca9
movzx eax, byte [esi + 0x48]
mov ecx, dword [ebp - 0x108]
push eax
call fcn.1007ffd0
mov edi, dword [ebp - 0x104]
movzx eax, al
push eax
push edi
call fcn.1007d8e0
mov dword [ebp - 0x100], eax
jmp 0x1007ccaf
mov edi, dword [ebp - 0x104]
mov edx, dword [ebp - 0xfc]
mov ecx, edi
mov edx, dword [edx + 0x10]
mov dword [ebp - 0xf0], edx
call fcn.1007d840
cmp byte [ebp + 8], 0
mov ecx, eax
mov dword [ebp - 0xe0], ecx
mov byte [ebp - 0xe1], 0
je 0x1007ce85
xor esi, esi
cmp dword [ebp - 0xf8], esi
jbe 0x1007d5d5
lea esp, [esp]
push dword [ebp - 0x118]
mov eax, dword [ebp - 0x108]
push ecx
mov al, byte [eax + 6]
and al, 1
mov byte [ebp - 0xf0], al
lea eax, [ebp - 0x134]
push dword [ebp - 0xf0]
push ecx
push dword [ebp - 0x100]
mov ecx, dword [ebp - 0xfc]
push dword [ecx + 0x10]
push eax
movzx eax, word [ebx + esi*2]
push eax
call fcn.1007d5e0
xor ecx, ecx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x170], ecx
test eax, eax
je 0x1007cd98
cmp byte [edi + 0x21], cl
je 0x1007cd98
test esi, esi
je 0x1007cd98
movzx eax, word [ebx + esi*2]
lea ecx, [ebp - 0x134]
mov dx, word [ebx + esi*2 - 2]
push eax
call fcn.1007bf20
add esp, 4
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0xe8]
mov edi, dword [eax]
lea eax, [ebp - 0x14c]
push eax
push dword [edi + 4]
push edi
call fcn.1000e570
mov ecx, eax
mov eax, dword [ebp - 0xe8]
mov edx, dword [eax + 4]
mov eax, 0x15555554
sub eax, edx
cmp eax, 1
jb 0x1007ce7b
lea eax, [edx + 1]
mov edx, dword [ebp - 0xe8]
mov dword [edx + 4], eax
mov dword [edi + 4], ecx
mov eax, dword [ecx + 4]
mov dword [eax], ecx
lea eax, [ebp - 0x16c]
mov edi, dword [edx + 8]
push eax
push dword [edi + 4]
push edi
call fcn.1000e5c0
mov ecx, eax
mov eax, dword [ebp - 0xe8]
mov edx, dword [eax + 0xc]
mov eax, 0xaaaaaa9
sub eax, edx
cmp eax, 1
jb 0x1007ce7b
lea eax, [edx + 1]
mov edx, dword [ebp - 0xe8]
mov dword [edx + 0xc], eax
mov dword [edi + 4], ecx
mov eax, dword [ecx + 4]
mov dword [eax], ecx
lea eax, [ebp - 0x17c]
mov edi, dword [edx + 0x10]
push eax
push dword [edi + 4]
push edi
call fcn.1000e5c0
mov ecx, eax
mov eax, dword [ebp - 0xe8]
mov edx, dword [eax + 0x14]
mov eax, 0xaaaaaa9
sub eax, edx
cmp eax, 1
jb 0x1007ce7b
lea eax, [edx + 1]
inc esi
mov edx, dword [ebp - 0xe8]
mov dword [edx + 0x14], eax
mov dword [edi + 4], ecx
mov eax, dword [ecx + 4]
mov edi, dword [ebp - 0x104]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xe0]
cmp esi, dword [ebp - 0xf8]
jb 0x1007ccf0
mov bl, 1
jmp 0x1007d54e
push str.list_T__too_long
call fcn.1005f1f4
mov esi, dword [ebp - 0xf8]
lea ecx, [ebp - 0x64]
push esi
xor eax, eax
mov dword [ebp - 0x13c], edx
push ebx
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
call fcn.100075f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
push esi
xor eax, eax
mov dword [ebp - 0x38], 7
push 0x100a3c50
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
call fcn.100075f0
mov ebx, dword [ebp - 0xe8]
mov ecx, ebx
push esi
mov byte [ebp - 4], 3
call fcn.1000e360
lea edi, [ebx + 8]
push esi
mov ecx, edi
mov dword [ebp - 0x154], edi
call fcn.1000e440
push esi
lea ecx, [ebx + 0x10]
call fcn.1000e440
jmp 0x1007cf20
cmp dword [ebp - 0x38], 8
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x64]
cmovae edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x50], 8
push 1
cmovae ecx, dword [ebp - 0x64]
cmp dword [ebp - 0x134], 0
push edx
cmovge eax, dword [ebp - 0x110]
push esi
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetGlyphIndicesW]
mov esi, dword [ebx]
xor ebx, ebx
mov edi, dword [edi]
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x11c], ebx
mov esi, dword [esi]
mov edi, dword [edi]
test eax, eax
je 0x1007d0a6
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x64]
cmp ecx, 8
cmovae eax, edx
cmp word [eax + ebx*2], 0
je 0x1007d08d
cmp ecx, 8
lea eax, [ebp - 0x64]
cmovae eax, edx
movzx eax, word [eax + ebx*2]
push eax
call fcn.100641ad
add esp, 4
test eax, eax
je 0x1007cfb4
mov dword [esi + 8], 0
jmp 0x1007d076
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov ecx, 0xffff
cmovae eax, edx
cmp word [eax + ebx*2], cx
mov ecx, dword [ebp - 0x38]
je 0x1007d08d
mov eax, dword [ebp - 0x108]
push dword [ebp - 0x118]
push ecx
mov al, byte [eax + 6]
and al, 1
cmp ecx, 8
mov byte [ebp - 0x148], al
lea ecx, [ebp - 0x134]
push dword [ebp - 0x148]
lea eax, [ebp - 0x4c]
push dword [ebp - 0xe0]
cmovae eax, edx
push dword [ebp - 0x100]
push dword [ebp - 0xf0]
movzx eax, word [eax + ebx*2]
push ecx
mov ecx, dword [ebp - 0xfc]
push eax
call fcn.1007d5e0
mov dword [esi + 8], eax
test eax, eax
je 0x1007d076
mov eax, dword [ebp - 0x104]
cmp byte [eax + 0x21], 0
je 0x1007d076
test ebx, ebx
je 0x1007d076
cmp dword [ebp - 0x38], 8
lea ebx, [ebp - 0x4c]
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x4c]
cmovae ebx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x134]
cmovae edx, dword [ebp - 0x4c]
movzx eax, word [ebx + eax*2]
mov ebx, dword [ebp - 0x11c]
push eax
mov dx, word [edx + ebx*2 - 2]
call fcn.1007bf20
mov dword [edi + 8], eax
add esp, 4
mov dword [edi + 0x10], eax
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
xor ecx, ecx
inc dword [ebp - 0x114]
mov word [eax + ebx*2], cx
mov eax, dword [ebp - 0xf8]
inc ebx
mov esi, dword [esi]
mov edi, dword [edi]
mov dword [ebp - 0x11c], ebx
cmp ebx, eax
jb 0x1007cf74
cmp dword [ebp - 0x114], eax
jae 0x1007d59f
mov esi, dword [ebp - 0x138]
push esi
push dword [ebp - 0x15c]
call fcn.1007ae10
mov ebx, eax
test ebx, ebx
jne 0x1007d131
cmp byte [ebp - 0xe1], al
jne 0x1007d516
mov eax, dword [0x100b4f84]
test al, 1
jne 0x1007d10c
or eax, 1
mov dword [0x100b4fa4], 7
mov dword [0x100b4f84], eax
xor eax, eax
push 0x10083250
mov dword [0x100b4fa0], ebx
mov word [0x100b4f90], ax
call fcn.100637e7
add esp, 4
push 5
push 0x100a3c54
mov ecx, 0x100b4f90
call fcn.100075f0
fld1
mov ebx, 0x100b4f90
fstp qword [0x100b4fa8]
mov byte [ebp - 0xe1], 1
mov eax, dword [ebp - 0xfc]
lea edi, [ebp - 0xdc]
inc esi
mov ecx, 0x17
mov dword [ebp - 0x138], esi
mov esi, dword [eax + 8]
add esi, 0x38
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0xc4], 0
cmp dword [ebx + 0x14], 8
jb 0x1007d162
mov eax, dword [ebx]
jmp 0x1007d164
mov eax, ebx
push 0x20
push eax
lea eax, [ebp - 0xc0]
push 0x20
push eax
call fcn.100641be
add esp, 0x10
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov esi, eax
test esi, esi
je 0x1007d1c1
push esi
push dword [ebp - 0x10c]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [ebp - 0x10c]
call fcn.1007c460
mov esi, eax
test esi, esi
je 0x1007d1c1
lea eax, [ebp - 0x110]
push eax
push dword [0x100b4eb4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
fld1
mov dword [ebp - 0x134], esi
fld qword [ebx + 0x18]
fucompi st(1)
fstp st(0)
lahf
test ah, 0x44
jnp 0x1007d290
mov eax, dword [ebp - 0x130]
fild dword [ebp - 0x130]
test eax, eax
jns 0x1007d1f0
fadd qword [0x100a8478]
fstp qword [ebp - 0xf4]
fld qword [ebp - 0xf4]
fmul qword [ebx + 0x18]
fnstcw word [ebp - 0xde]
movzx eax, word [ebp - 0xde]
or eax, 0xc00
mov dword [ebp - 0xf0], eax
fldcw word [ebp - 0xf0]
fistp qword [ebp - 0xf4]
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x12c]
fldcw word [ebp - 0xde]
fild dword [ebp - 0x12c]
test eax, eax
jns 0x1007d24b
fadd qword [0x100a8478]
fstp qword [ebp - 0xf4]
fld qword [ebp - 0xf4]
fmul qword [ebx + 0x18]
fnstcw word [ebp - 0xde]
movzx eax, word [ebp - 0xde]
or eax, 0xc00
mov dword [ebp - 0xf0], eax
fldcw word [ebp - 0xf0]
fistp qword [ebp - 0xf4]
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x12c], eax
fldcw word [ebp - 0xde]
mov edx, dword [0x100b4eac]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x1007d2b5
cmp dword [eax + 0x10], esi
jge 0x1007d2ab
mov eax, dword [eax + 8]
jmp 0x1007d2af
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1007d2a1
cmp ecx, edx
je 0x1007d2cc
cmp esi, dword [ecx + 0x10]
jl 0x1007d2cc
mov dword [ebp - 0x158], ecx
lea eax, [ebp - 0x158]
jmp 0x1007d2d8
mov dword [ebp - 0x150], edx
lea eax, [ebp - 0x150]
mov eax, dword [eax]
cmp eax, edx
jne 0x1007d2e2
xor eax, eax
jmp 0x1007d2e5
add eax, 0x14
mov bh, byte [eax + 0x3a]
lea edi, [ebp - 0x7c]
movzx ecx, word [eax + 0x36]
add eax, 0x34
cmp dword [ebp - 0x68], 8
mov dword [ebp - 0x108], eax
cmovae edi, dword [ebp - 0x7c]
and bh, 1
mov dword [ebp - 0x20], 0
xor bl, bl
mov dword [ebp - 0x1c], 0x226
mov dword [ebp - 0x18], 0x263
lea ebx, [ebx]
movsx eax, bl
cmp ecx, dword [ebp + eax*4 - 0x20]
jle 0x1007d332
inc bl
cmp bl, 3
jl 0x1007d320
mov bl, 3
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1007d337
sub esi, ecx
sar esi, 1
inc esi
lea eax, [esi*2 + 6]
push eax
mov dword [ebp - 0x140], eax
call fcn.1005f823
add esp, 4
mov dword [ebp - 0x144], eax
mov byte [eax], bl
mov byte [eax + 1], bh
push edi
mov dword [eax + 2], 0
add eax, 6
push esi
push eax
call fcn.1006427c
add esp, 0xc
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 4
push eax
call fcn.100803d0
mov esi, dword [ebp - 0xfc]
mov ebx, eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x104], ebx
push eax
mov edx, dword [esi + 8]
movzx ecx, byte [edx + 0x52]
mov dx, word [edx + 0x1a]
push ecx
mov ecx, ebx
call fcn.1007fcd0
add esp, 8
test al, al
je 0x1007d507
lea edx, [ebp - 0xc0]
lea ecx, [edx + 2]
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1007d3d0
mov eax, dword [ebp - 0x13c]
sub edx, ecx
sar edx, 1
lea ecx, [ebp - 0xdc]
push eax
mov dword [ebp - 0xf0], eax
lea edx, [edx*2 + 0x1c]
call fcn.1007fe30
mov edx, dword [ebp - 0x144]
add esp, 4
cmp dword [ebp - 0xcc], 0
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x100], 0
je 0x1007d478
mov cl, byte [edx]
mov al, byte [ebp - 0xcc]
sub al, cl
mov dword [ebp - 0x34], 0xffffffe0
add al, 2
mov dword [ebp - 0x30], 0xfffffff0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 0x20
jns 0x1007d455
xor cl, cl
jmp 0x1007d462
movzx ecx, al
cmp al, 5
mov eax, 4
cmovge ecx, eax
movsx eax, cl
mov esi, dword [ebp + eax*4 - 0x34]
add esi, dword [ebx + 4]
mov dword [ebp - 0x100], esi
mov esi, dword [ebp - 0xfc]
xor ecx, ecx
mov eax, 8
cmp byte [ebx + 1], cl
cmovne eax, ecx
mov cl, byte [ebx + 0x20]
or eax, 0x240
mov dword [ebp - 0xe0], eax
test cl, cl
jne 0x1007d49c
or eax, 2
jmp 0x1007d4dd
movzx ecx, cl
dec ecx
je 0x1007d4bb
sub ecx, 2
je 0x1007d4b4
cmp dword [esi + 0x10], 3
jne 0x1007d4c6
or eax, 0x30000
jmp 0x1007d4c0
or eax, 0x20000
jmp 0x1007d4c0
or eax, 0x10000
mov dword [ebp - 0xe0], eax
movzx ecx, byte [ebx]
sub ecx, 0
je 0x1007d4d8
sub ecx, 2
jne 0x1007d4e3
or eax, 0x20
jmp 0x1007d4dd
or eax, 0x8000
mov dword [ebp - 0xe0], eax
push edx
mov byte [ebp - 4], 3
call fcn.1006415d
mov ebx, dword [ebp - 0xe8]
add esp, 4
mov esi, dword [ebp - 0xf8]
mov edi, dword [ebp - 0x154]
jmp 0x1007cf20
mov edx, dword [ebp - 0x144]
push edx
call fcn.1006415d
add esp, 4
cmp dword [ebp - 0x38], 8
jb 0x1007d527
push dword [ebp - 0x4c]
call fcn.1001b9e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
jb 0x1007d54c
push dword [ebp - 0x64]
call fcn.1001b9e0
add esp, 4
xor bl, bl
cmp dword [ebp - 0x68], 8
jb 0x1007d55f
push dword [ebp - 0x7c]
call fcn.1001b9e0
add esp, 4
push dword [ebp - 0x10c]
xor eax, eax
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], ax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006302b
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp - 0x38], 8
jb 0x1007d5b0
push dword [ebp - 0x4c]
call fcn.1001b9e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
jb 0x1007d5d5
push dword [ebp - 0x64]
call fcn.1001b9e0
add esp, 4
mov bl, 1
jmp 0x1007d54e