Function at 0x40cdd3
Capabilities:
Allocate thread local storage
Enumerate files on windows
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x10], 0xda
mov dword [ebp - 0xc], 0x76
mov dword [ebp - 0x4c], 0x81
mov dword [ebp - 8], 0xdb
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
imul eax, dword [0x41c0c0]
mov ecx, dword [ebp - 0x38]
or ecx, dword [0x41c11c]
cmp eax, ecx
jae 0x40ce1c
mov dword [ebp - 0x14], 1
jmp 0x40ce23
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x40ce60
mov edx, dword [0x41c124]
xor edx, dword [0x41c0d4]
jne 0x40ce4a
mov eax, dword [0x41c130]
xor eax, dword [ebp - 0xc]
jne 0x40ce4a
mov dword [ebp - 0x18], 0
jmp 0x40ce51
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
je 0x40ce60
mov dword [ebp - 0x1c], 1
jmp 0x40ce67
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x40cfc5
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
imul edx, dword [ebp - 4]
cmp ecx, edx
jbe 0x40ce8c
mov dword [ebp - 0x20], 1
jmp 0x40ce93
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
je 0x40cfc5
mov dword [ebp - 0x50], 0xb1
mov eax, dword [0x41c12c]
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov dword [0x41c134], eax
mov ecx, dword [0x41c0bc]
push ecx
call dword [sym.imp.USER32.dll_DestroyMenu]
mov ecx, eax
mov eax, dword [0x41c0d0]
xor edx, edx
div dword [ebp - 8]
cmp ecx, eax
jbe 0x40cedb
mov dword [ebp - 0x24], 1
jmp 0x40cee2
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [0x41c134]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.GDI32.dll_PolylineTo]
test eax, eax
jne 0x40cf14
mov edx, dword [0x41c0c4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
jne 0x40cf14
mov dword [ebp - 0x28], 0
jmp 0x40cf1b
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
je 0x40cf2c
mov dword [ebp - 0x2c], 1
jmp 0x40cf33
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x38]
and ecx, dword [0x41c130]
cmp eax, ecx
jne 0x40cf57
mov dword [ebp - 0x30], 1
jmp 0x40cf5e
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x30]
je 0x40cf84
mov dword [ebp - 0x58], 0xdf
mov eax, dword [0x41c118]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41c0c4], eax
jmp 0x40cfaa
mov dword [ebp - 0x5c], 9
mov eax, dword [0x41c110]
xor edx, edx
div dword [0x41c110]
mov dword [0x41c128], eax
mov edx, dword [ebp - 0x10]
imul edx, dword [ebp - 0x34]
mov dword [0x41c0d8], edx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 4], eax
jmp 0x40d083
mov dword [ebp - 0x60], 0x9b
mov dword [ebp - 0x64], 0xa3
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x6c], 0
push 0
push 0x392
push 0x789
mov ecx, dword [0x41c130]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x41c0d0], eax
lea edx, [ebp - 0x3c]
push edx
push str.dzhIeEugl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40d043
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x40d026
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
push 0
push 0xffffffffffffffff
push str.yall
push 0xffffffffffffffff
push str.aqztpqh
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 0x44], eax
mov ecx, dword [0x41c130]
push ecx
call fcn.00412523
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x48], eax
lea edx, [ebp + 0xc]
push edx
push str.OifoLsk
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 8], eax
mov dword [ebp - 8], 0
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40d0b9
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40d09c
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret