Function at 0x100041d5
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005746e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10004479
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x10004320
mov dword [ebp - 0x30], 0x658
mov dword [ebp - 0x44], str.ijaghgi_ljyj_qtmymjch_oom_pitunebg
cmp dword [ebp - 0x30], 0x6ad
jle 0x10004290
and dword [ebp - 0x28], 0
jmp 0x10004250
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x65c4
jge 0x10004290
and dword [ebp - 0x20], 0
jmp 0x10004266
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x69d2
jge 0x1000428e
mov eax, dword [ebp - 0x28]
xor eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
mov ecx, 0x10072d38
call fcn.10011982
jmp 0x1000425f
jmp 0x10004249
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0x566
jge 0x100042b0
mov edx, dword [ebp - 0x44]
mov ecx, 0x10072d38
call fcn.10016228
jmp 0x100042cc
or dword [ebp - 4], 0xffffffff
jmp 0x100042d6
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x100042fe
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jge 0x1000431b
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x54]
call fcn.10011c5e
mov dword [eax], 0x1bd97a88
jmp 0x100042f3
jmp 0x10004477
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x10004477
mov dword [ebp - 0x34], 0x6f0c
mov dword [ebp - 0x50], str.wzfryfhyp_tiphmjqkf_hclwd_xeec_vxktdd_guf_byexu_kfkfkiw_furazel_wpgertw_hsozciy_czhhmwk_wzfbyxisb_utrkhma
cmp dword [ebp - 0x34], 0x7277
jle 0x10004413
and dword [ebp - 0x2c], 0
jmp 0x10004362
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x5084
jge 0x10004408
and dword [ebp - 0x18], 0
jmp 0x1000437c
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x5eb0
jge 0x10004403
and dword [ebp - 0x1c], 0
jmp 0x10004392
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x57d4
jge 0x100043fe
and dword [ebp - 0x24], 0
jmp 0x100043a8
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x2e63
jge 0x100043fc
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
sar edx, cl
mov eax, edx
cdq
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
push dword [ebp - 0x74]
push dword [ebp - 0x78]
lea ecx, [ebp - 0x94]
call fcn.10001ba3
pop ecx
pop ecx
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
call fcn.1001171e
push eax
call fcn.100410e1
pop ecx
lea ecx, [ebp - 0x94]
call fcn.10011700
jmp 0x100043a1
jmp 0x1000438b
jmp 0x10004375
jmp 0x1000435b
push 0x9ca
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push 0x6e89
push 0x77c
push 0x758b
push 0x48c6
push 1
push 0x6a0b
call fcn.10002ad0
add esp, 0x1c
mov dword [ebp - 4], 2
cmp dword [ebp - 0x34], 0x6ba0
jge 0x10004451
push dword [ebp - 0x50]
call fcn.100410e1
pop ecx
jmp 0x1000446d
or dword [ebp - 4], 0xffffffff
jmp 0x10004477
jmp 0x10004495
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
push dword [ebp - 0x58]
push 0
push dword [ebp - 0x60]
call fcn.1000363c
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret