Function at 0x100499af
Capabilities:
Query environment variable
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
movzx eax, byte [ebp + 0x40]
test eax, eax
je 0x10049a11
lea eax, [ebp + 0x14]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax]
test eax, eax
je 0x10049a04
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x10049a02
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x10049a0c
push 0
call dword [sym.imp.USER32.dll_DestroyCursor]
jmp 0x10049e2d
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x34], 0x24a0
mov dword [ebp - 0xe8], 0x1000c438
cmp dword [ebp - 0x34], 0x26b5
jle 0x10049ab7
and dword [ebp - 0x10], 0
jmp 0x10049a50
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x4e6f
jge 0x10049ab7
and dword [ebp - 8], 0
jmp 0x10049a66
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x63dc
jge 0x10049ab5
and dword [ebp - 0x18], 0
jmp 0x10049a7c
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4768
jge 0x10049ab3
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], edx
push dword [ebp - 0xe0]
push dword [ebp - 0xe4]
mov ecx, 0x10084b98
call fcn.10020ee4
jmp 0x10049a75
jmp 0x10049a5f
jmp 0x10049a49
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x34], 0x20e1
jge 0x10049ad9
mov edx, dword [ebp - 0xe8]
mov ecx, 0x10084b98
call fcn.10023c34
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x10049e00
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x2c], 0x2a73
mov dword [ebp - 0x74], 0x1000c490
cmp dword [ebp - 0x2c], 0x2bcf
jle 0x10049bec
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExA]
and dword [ebp - 4], 0
jmp 0x10049b7f
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x7611
jge 0x10049bec
and dword [ebp - 0xc], 0
jmp 0x10049b95
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x7619
jge 0x10049bea
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 0xc]
cdq
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], edx
push dword [ebp - 0xec]
push dword [ebp - 0xf0]
lea ecx, [ebp - 0x118]
call fcn.1001105e
pop ecx
pop ecx
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
call fcn.10020ec4
push eax
call fcn.10069ba3
pop ecx
lea ecx, [ebp - 0x118]
call fcn.10020eba
jmp 0x10049b8e
jmp 0x10049b78
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0x2c], 0x2868
jge 0x10049c0a
push dword [ebp - 0x74]
call fcn.10069ba3
pop ecx
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x3c], 0x2485
mov dword [ebp - 0xf4], 0x1000c4dc
cmp dword [ebp - 0x3c], 0x26b3
jle 0x10049cbf
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
and dword [ebp - 0x14], 0
jmp 0x10049c73
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x71a7
jge 0x10049cbf
and dword [ebp - 0x1c], 0
jmp 0x10049c89
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2d0a
jge 0x10049cbd
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], edx
push dword [ebp - 0xf8]
push dword [ebp - 0xfc]
mov ecx, 0x10084b98
call fcn.10020ee4
jmp 0x10049c82
jmp 0x10049c6c
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x3c], 0x2473
jge 0x10049ce1
mov edx, dword [ebp - 0xf4]
mov ecx, 0x10084b98
call fcn.10023c34
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x10049d3f
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x10049d3f
and dword [ebp - 0x38], 0
jmp 0x10049d46
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
push 0
mov ecx, dword [ebp - 0x88]
call fcn.1002129c
mov ecx, dword [ebp - 0x90]
mov dword [eax], ecx
push 1
mov ecx, dword [ebp - 0x98]
call fcn.1002129c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0xfffffffd
jle 0x10049da4
mov eax, dword [ebp - 0xa0]
cmp dword [eax], 0
jne 0x10049da4
and dword [ebp - 0x28], 0
jmp 0x10049dab
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jg 0x10049dcc
mov dword [ebp - 0x30], 1
jmp 0x10049dd0
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax]
imul eax, dword [ebp - 0x30]
cmp eax, 0x7ccce1cc
je 0x10049dec
mov dword [ebp - 0x40], 1
jmp 0x10049df0
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc0]
mov dword [ecx], eax
jmp 0x10049e2d
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
movzx eax, byte [eax]
test eax, eax
je 0x10049e2d
push 0
call fcn.10046cd5
pop ecx
mov esp, ebp
pop ebp
ret