Function at 0x40ee83
Capabilities:
Enumerate files on windows
Get file size
Get thread local storage value
Link many functions at runtime
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
mov dword [ebp - 0x2c], 0xa9
mov dword [ebp - 0x4c], 0xd6
mov dword [ebp - 0x60], 0x48
mov dword [ebp - 4], 0x2f
mov dword [ebp - 0x14], 0x4e
mov dword [ebp - 8], 0x64
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x50], 0xc6
mov eax, dword [ebp - 0x18]
or eax, dword [0x41c124]
mov ecx, dword [0x41c110]
or ecx, dword [0x41c0c0]
cmp eax, ecx
je 0x40eeee
mov dword [ebp - 0x44], 1
jmp 0x40eef5
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0
jne 0x40ef28
mov edx, dword [ebp - 0x34]
and edx, dword [ebp - 8]
jne 0x40ef17
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 8]
test eax, eax
jne 0x40ef17
mov dword [ebp - 0x48], 0
jmp 0x40ef1e
mov dword [ebp - 0x48], 1
cmp dword [ebp - 0x48], 0
je 0x40f105
mov dword [ebp - 0xd0], 0x84
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push str.VemJpB.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x41c0d0], eax
push str.NDYnLW
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
movzx eax, word [edx]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
imul edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0xcc]
mov dword [0x41c134], ecx
mov edx, dword [0x41c134]
mov dword [edx + 4], 0x40ff53
mov eax, dword [0x41c134]
mov ecx, dword [0x41c0d0]
mov dword [eax + 0x10], ecx
mov edx, dword [0x41c134]
mov dword [edx + 0x24], 0x41c4f8
mov eax, dword [0x41c134]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push 0xffffffffffffffff
push str.xlymbrn
push 0xffffffffffffffff
push str.vohej
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 0xc], eax
push 0
push 0xffffffffffffffff
push str.ggvwzqkwck
push 0xffffffffffffffff
push str.gqutnzbdgvs
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.gSK.wIz
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x38], eax
push str.YqRDmXtAa.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x4c], eax
push 0
mov ecx, dword [0x41c0d0]
push ecx
push 0
push 0
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push str.nvzjLjnbImHFeKx
push str.AVZjdaGIwYuBzyFr
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x41c130], eax
push 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Tsdihr
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
push edx
call fcn.0040a383
add esp, 4
lea eax, [ebp - 4]
push eax
push str.PJwLcWkPwe
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x6c], eax
jmp 0x40f21d
mov dword [ebp - 0x78], 0xab
mov ecx, dword [0x41c130]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [0x41c0c0], eax
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [0x41c0c0]
push eax
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp + 8], eax
mov eax, dword [0x41c0c0]
xor edx, edx
div dword [0x41c0c0]
mov dword [0x41c124], eax
mov esi, dword [0x41c130]
imul esi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
cmp esi, eax
jae 0x40f168
mov dword [ebp - 0x54], 1
jmp 0x40f16f
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x54], 0
je 0x40f1dd
mov eax, dword [0x41c120]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov eax, dword [0x41c128]
xor edx, edx
div dword [0x41c0d4]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x1c]
je 0x40f1a4
mov dword [ebp - 0x58], 1
jmp 0x40f1ab
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0
je 0x40f1dd
mov dword [ebp - 0xd4], 0xa
mov dword [ebp - 0xd8], 0x43
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [0x41c0d8]
push ecx
call dword [sym.imp.GDI32.dll_SetArcDirection]
mov dword [0x41c11c], eax
jmp 0x40f212
mov dword [ebp - 0xdc], 0xf1
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x41c128], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [0x41c118], ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [ebp - 4], eax
mov eax, dword [0x41c0c4]
add eax, dword [ebp - 0x78]
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40f24c
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x40f22f
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x5c]
movzx eax, word [edx]
mov dword [ebp - 0x34], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
movzx edx, word [ecx]
mov dword [ebp - 8], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.bxVZltSwy.kDH
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0xffffffffffffffff
push str.ucdv
push 0xffffffffffffffff
push str.ctomr
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 0x14], eax
push 0
push 0xffffffffffffffff
push str.nnfgrpkwyv
push 0xffffffffffffffff
push str.iwvbjmtvdvo
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], 0x87
jmp 0x40f2fa
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0xb2
jae 0x40f5c7
mov dword [ebp - 0x80], 0x52
mov dword [ebp - 0x70], 0x7a
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0xe0], 0xf0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
sub edx, 0x15
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0x54
ja case.0x40f367.1
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax + 0x40f5e7]
jmp dword [ecx*4 + 0x40f5d3]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [0x41c0c4], eax
jmp 0x40f45f
mov dword [ebp - 0xe4], 0x2c
mov dword [ebp - 0xe8], 0x45
mov eax, dword [ebp - 0x70]
mov dword [0x41c110], eax
mov ecx, dword [0x41c110]
mov dword [ebp - 0x80], ecx
jmp 0x40f45f
mov dword [ebp - 0xec], 0x10
mov dword [ebp - 0xf0], 0x58
mov dword [ebp - 0x84], 0xd1
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [0x41c118]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x84], eax
jmp 0x40f45f
mov dword [ebp - 0x110], 0x95
mov dword [ebp - 0xf4], 0x61
mov ecx, dword [ebp - 0x24]
sub ecx, dword [0x41c0bc]
mov dword [0x41c0cc], ecx
jmp 0x40f45f
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x100], 0x3b
mov dword [ebp - 0x104], 0x89
mov edx, dword [ebp - 0x88]
or edx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xd4
ja case.0x40f47c.1
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ecx + 0x40f65f]
jmp dword [edx*4 + 0x40f63f]
mov dword [ebp - 0x98], 0xf0
mov dword [ebp - 0x94], 0x35
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x74], eax
jmp 0x40f5b9
mov dword [ebp - 0x108], 0x51
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x68], eax
jmp 0x40f5b9
mov dword [ebp - 0x10c], 0x58
mov ecx, dword [0x41c0bc]
sub ecx, dword [ebp - 0x18]
mov dword [str.p4vH_], ecx
jmp 0x40f5b9
mov dword [ebp - 0x130], 0x1f
mov edx, dword [ebp - 0x38]
or edx, dword [0x41c0cc]
mov dword [str.p4vH_], edx
jmp 0x40f5b9
mov dword [ebp - 0x114], 0x51
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41c0d8], eax
jmp 0x40f5b9
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [0x41c128]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x41c0c8], eax
jmp 0x40f5b9
mov dword [ebp - 0x11c], 0x5d
mov dword [ebp - 0x120], 1
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0x60
mov dword [ebp - 0x124], 0
mov dword [ebp - 0xa4], 0
mov ecx, dword [ebp - 0x9c]
add ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], ecx
jmp 0x40f5b9
mov dword [ebp - 0x128], 0xa9
mov dword [ebp - 0x12c], 0xb
mov edx, dword [ebp - 0x28]
xor edx, dword [0x41c11c]
mov dword [0x41c120], edx
mov eax, dword [ebp - 0x40]
and eax, dword [ebp - 0x70]
mov dword [ebp - 0x40], eax
jmp 0x40f2f1
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret