Function at 0x416b80
Capabilities:
Read file on windows
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov dword [ebp - 0x14], 0x1b
mov dword [ebp - 0xc], 0x45
mov dword [ebp - 4], 0x55
mov dword [ebp - 8], 0x18
mov dword [ebp - 0x40], 0x3f
mov dword [ebp - 0x28], 0x32
mov dword [ebp - 0x7c], 0x4f
mov dword [ebp - 0x84], 0x13
mov dword [ebp - 0x58], 0x5a
mov dword [ebp - 0x48], 0x1c
mov dword [ebp - 0x88], 0x27
mov dword [ebp - 0x80], 0x26
mov dword [ebp - 0x74], 0x5c
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x24], 0x44
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x64], 0x3f
mov dword [ebp - 0x8c], 0x4d
mov dword [ebp - 0x90], 0x23
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x10], 0x4f
mov dword [ebp - 0x60], 0x47
mov dword [ebp - 0x5c], 3
mov dword [ebp - 0x18], 0
jmp 0x416c48
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x5c]
sub ecx, 2
cmp dword [ebp - 0x18], ecx
jge 0x416dbd
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 8]
jge 0x416c68
mov dword [ebp - 0x2c], 1
jmp 0x416c6f
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x58]
jge 0x416c84
mov dword [ebp - 0x30], 1
jmp 0x416c8b
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp + 8]
or ecx, dword [ebp - 0x28]
and ecx, dword [ebp - 0x2c]
and ecx, dword [ebp - 0x30]
je 0x416db8
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x10]
jge 0x416cae
mov dword [ebp - 0x34], 1
jmp 0x416cb5
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x60]
jge 0x416ccf
mov dword [ebp - 0x38], 1
jmp 0x416cd6
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x64]
jge 0x416ce7
mov dword [ebp - 0x3c], 1
jmp 0x416cee
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x38]
or eax, dword [ebp - 8]
or eax, dword [ebp - 0x3c]
je 0x416db8
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x6c]
jge 0x416db8
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jne 0x416db8
push 0x14a6
push 0x4336
push 0xb252
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x40]
jge 0x416d56
mov dword [ebp - 0x44], 1
jmp 0x416d5d
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0xc]
and edx, dword [ebp - 0x44]
or ecx, edx
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x70], 0
je 0x416db8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x48]
jne 0x416db8
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 0x14998
push 0xe519
push 0x134f4
push 0x11a5e
push 0xc520
push 0x9bfd
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add esp, 0x18
jmp 0x416c3f
mov eax, dword [ebp - 0x10]
sub eax, 0x19
push eax
mov ecx, dword [ebp - 0x74]
sub ecx, 0x56
push ecx
mov edx, dword [ebp - 0x48]
sub edx, 0x11
push edx
mov eax, dword [ebp - 8]
sub eax, 0xd
push eax
mov ecx, dword [ebp - 4]
add ecx, 5
push ecx
call fcn.0041edc0
add esp, 0x14
mov dword [ebp - 0x20], 0
jmp 0x416dfa
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
sub eax, 0x17
cmp dword [ebp - 0x20], eax
jge 0x416eba
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x78]
jge 0x416eb5
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp + 0xc]
jne 0x416eb5
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x24]
jge 0x416e3e
mov dword [ebp - 0x50], 1
jmp 0x416e45
mov dword [ebp - 0x50], 0
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x80]
jge 0x416e56
mov dword [ebp - 0x54], 1
jmp 0x416e5d
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x50]
and eax, dword [ebp - 0x54]
je 0x416eb5
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x58]
jne 0x416eb5
push 0x635d
push 0x14e85
push 0x4aa4
push 0xca5d
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x10
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
push 0x4d27
push 0x115de
push 0x1633e
push 0x9a22
push 0x2f8e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x14
jmp 0x416df1
mov esp, ebp
pop ebp
ret