Function at 0x40c0c1
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x40bfee
cmp dword [ebp - 0x40], 0
je 0x40c028
mov edx, dword [ebp - 0xc]
xor edx, dword [0x4217ec]
mov eax, dword [0x4217e4]
sub eax, dword [ebp - 0x1c]
cmp edx, eax
jne 0x40c012
mov dword [ebp - 0x44], 1
jmp 0x40c019
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0
je 0x40c028
mov dword [ebp - 0x48], 1
jmp 0x40c02f
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0
je 0x40c06d
mov ecx, dword [0x4217e8]
or ecx, dword [0x42181c]
jne 0x40c057
mov edx, dword [0x4217ec]
xor edx, dword [ebp - 0xc]
jne 0x40c057
mov dword [ebp - 0x4c], 0
jmp 0x40c05e
mov dword [ebp - 0x4c], 1
cmp dword [ebp - 0x4c], 0
je 0x40c06d
mov dword [ebp - 0x50], 1
jmp 0x40c074
mov dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0
je 0x40c33d
mov eax, dword [ebp - 4]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x40c097
mov dword [ebp - 0x54], 1
jmp 0x40c09e
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x54], 0
je 0x40c33d
mov edx, dword [str.AJ]
add edx, dword [0x421824]
mov dword [0x4217ec], edx
mov eax, dword [str.AJ]
sub eax, dword [0x4217fc]
cld
pop ss
inc edx
add byte [ebx], bh
add eax, 0x4217ec
je 0x40c0d6
mov dword [ebp - 0x58], 1
jmp 0x40c0dd
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x20]
mov esi, 1
lock xadd dword [ecx], esi
inc esi
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [0x421804]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, eax
jae 0x40c110
mov dword [ebp - 0x5c], 1
jmp 0x40c117
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jne 0x40c128
mov dword [ebp - 0x60], 1
jmp 0x40c12f
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [0x4217e8], edx
mov eax, dword [0x4217f8]
push eax
mov ecx, dword [0x42181c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, dword [0x4217e8]
je 0x40c165
mov dword [ebp - 0x64], 1
jmp 0x40c16c
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x64]
jne 0x40c1bf
mov dword [ebp - 0xc4], 0x4e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptor]
mov dword [0x421818], eax
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [0x42181c]
push eax
call dword [sym.imp.GDI32.dll_SetArcDirection]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [0x4217e0]
push edx
call dword [sym.imp.GDI32.dll_SetArcDirection]
mov dword [0x4217e0], eax
jmp 0x40c1d7
mov dword [ebp - 0xcc], 0x46
mov eax, dword [ebp - 0x34]
add eax, dword [0x4217e0]
mov dword [0x42180c], eax
mov ecx, dword [ebp - 0x28]
imul ecx, dword [0x421824]
mov dword [0x4217e4], ecx
mov edx, dword [0x421808]
push edx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp dword [0x4217e4], eax
je 0x40c205
mov dword [ebp - 0x68], 1
jmp 0x40c20c
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x68], 0
jne 0x40c249
mov eax, dword [0x421824]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
jne 0x40c23c
mov ecx, dword [0x4217f0]
imul ecx, dword [0x4217e4]
test ecx, ecx
jne 0x40c23c
mov dword [ebp - 0x6c], 0
jmp 0x40c243
mov dword [ebp - 0x6c], 1
cmp dword [ebp - 0x6c], 0
je 0x40c27a
mov dword [ebp - 0xd0], 0xec
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [0x421820]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOverridePredefKey]
mov dword [ebp - 4], eax
mov ecx, dword [0x4217e0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [0x421800], eax
jmp 0x40c29e
mov dword [ebp - 0xd4], 0xac
mov dword [ebp - 0xd8], 0x7f
mov edx, dword [0x4217e0]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4217e8]
and eax, dword [0x4217f0]
mov ecx, dword [0x421808]
or ecx, dword [ebp - 0xc]
cmp eax, ecx
je 0x40c2bf
mov dword [ebp - 0x70], 1
jmp 0x40c2c6
mov dword [ebp - 0x70], 0
mov edx, dword [0x4217fc]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [0x42180c]
push eax
mov ecx, dword [str.AJ]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp esi, eax
je 0x40c2f5
mov dword [ebp - 0x74], 1
jmp 0x40c2fc
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x70]
cmp edx, dword [ebp - 0x74]
jne 0x40c321
mov dword [ebp - 0xdc], 0x54
mov eax, dword [0x421800]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x421814], eax
jmp 0x40c338
mov dword [ebp - 0xe0], 0xae
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 0xc], eax
jmp 0x40c593
mov dword [ebp - 0x94], 0xf9
mov dword [ebp - 0x8c], 0x43
mov dword [ebp - 0x90], 0x56
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x98], 0
mov edx, dword [ebp - 4]
add edx, dword [0x42180c]
jne 0x40c3a6
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0xc]
test eax, eax
jne 0x40c3a6
mov dword [ebp - 0x78], 0
jmp 0x40c3ad
mov dword [ebp - 0x78], 1
cmp dword [ebp - 0x78], 0
je 0x40c405
mov ecx, dword [ebp - 0x30]
xor ecx, dword [ebp - 0x88]
je 0x40c3cf
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x10]
je 0x40c3cf
mov dword [ebp - 0x7c], 1
jmp 0x40c3d6
mov dword [ebp - 0x7c], 0
cmp dword [ebp - 0x7c], 0
je 0x40c405
mov dword [ebp - 0xe8], 6
mov eax, dword [0x421820]
sub eax, dword [0x421814]
mov dword [0x421814], eax
mov ecx, dword [ebp + 8]
imul ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
jmp 0x40c4a8
mov dword [ebp - 0xec], 0x81
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xa4], 0xb7
mov dword [ebp - 0x80], 0xcb
mov dword [ebp - 0xa8], 0
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xa4]
imul eax, dword [ebp - 0x18]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x80]
add ecx, dword [ebp - 0x80]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.00414334
add esp, 4
push str.FqcliCtmt.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
push str.wdGgYmADmU.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x24], eax
push str.cZjWofU.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x38], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov dword [ebp - 4], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
movzx eax, word [edx]
mov dword [ebp - 0x10], eax
push str.mzgSRAoa
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x90], eax
push str.KSrMGcWtkKR
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x88], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
movzx ecx, word [eax]
mov dword [ebp - 0x90], ecx
lea edx, [ebp - 0xc]
push edx
push str.yTiJU
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x94], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40c55c
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x40c53c
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x40c581
mov dword [ebp - 0x98], 0x152b
push str.RUZgkeQpba
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov dword [ebp - 0x3c], 0x59
jmp 0x40c5ae
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xaa
jae 0x40c77f
mov dword [ebp - 0xa0], 0x84
mov dword [ebp - 8], 0xc1
mov ecx, dword [ebp - 8]
xor ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
sub eax, 0x21
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xd7
ja case.0x40c5fb.1
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x40c7a0]
jmp dword [edx*4 + 0x40c78c]
mov dword [ebp - 0xf0], 0x2c
mov eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [0x421824], eax
jmp 0x40c6d1
mov dword [ebp - 0xf4], 0x8b
mov ecx, dword [0x421804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [0x421824], eax
jmp 0x40c6d1
mov edx, dword [0x4217f8]
or edx, dword [ebp - 0x14]
mov dword [0x4217f0], edx
jmp 0x40c6d1
mov dword [ebp - 0xf8], 0x6d
mov dword [ebp - 0xfc], 0x28
mov eax, dword [ebp - 8]
or eax, dword [0x421814]
mov dword [0x421808], eax
jmp 0x40c6d1
mov dword [ebp - 0x100], 0xbe
mov dword [ebp - 0x104], 0x98
mov dword [ebp - 0xac], 0xfa
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0x84
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0x9e
mov ecx, dword [ebp - 0xac]
add ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 8]
imul edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x40c713
cmp dword [ebp - 0x9c], 0x77
je 0x40c6f8
jmp 0x40c76d
mov ecx, dword [ebp - 0xa0]
push ecx
mov edx, dword [0x4217f0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4217fc], eax
jmp 0x40c77a
mov dword [ebp - 0x110], 0x7c
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0xbc], 0x41
mov dword [ebp - 0xb8], 0xc4
mov eax, dword [ebp - 0xb8]
xor eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
jmp 0x40c77a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp + 8], eax
jmp 0x40c5a5
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret