Function at 0x45944c
Capabilities:
Get hostname
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x195], 0
jne 0x459477
mov eax, dword [ebp - 4]
cmp dword [eax + 0x19c], 0
jbe 0x459706
mov eax, dword [ebp - 4]
call fcn.004585f8
push eax
call sub.KERNEL32.DLL_FindClose
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4596ff
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.004585f8
push eax
call sub.KERNEL32.DLL_TlsGetValue
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
call fcn.004585f8
push eax
call sub.KERNEL32.DLL_FormatMessageA
push 2
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
call fcn.004585f8
push eax
push 0
call sub.KERNEL32.DLL_GetProcessHeap
mov eax, dword [ebp - 0x28]
neg eax
push eax
mov eax, dword [ebp - 0x2c]
neg eax
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_GetThreadContext
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_ExcludeClipRect
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x19c]
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_InterlockedIncrement
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
call fcn.004585f8
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov ebx, eax
test ebx, 0x200000
je 0x45954e
push 0x14
mov eax, dword [0x494970]
mov eax, dword [eax]
call eax
add dword [ebp - 0x24], eax
test ebx, 0x100000
je 0x459564
push 0x15
mov eax, dword [0x494970]
mov eax, dword [eax]
call eax
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x195], 0
je 0x459635
xor esi, esi
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x193]
test dl, dl
je 0x45958d
mov eax, dword [ebp - 4]
add esi, dword [eax + 0x198]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x194]
test al, al
je 0x4595a4
mov ecx, dword [ebp - 4]
add esi, dword [ecx + 0x198]
mov ecx, dword [ebp - 4]
test byte [ecx + 0x192], 1
je 0x4595b3
sub dword [ebp - 0x2c], esi
mov ecx, dword [ebp - 4]
test byte [ecx + 0x192], 2
je 0x4595c2
sub dword [ebp - 0x28], esi
mov ecx, dword [ebp - 4]
test byte [ecx + 0x192], 4
je 0x4595d1
add dword [ebp - 0x24], esi
mov ecx, dword [ebp - 4]
test byte [ecx + 0x192], 8
je 0x4595e0
add dword [ebp - 0x20], esi
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 0x192]
mov ebx, dword [ebp - 4]
movzx ebx, byte [ebx + 0x195]
or ecx, dword [ebx*4 + 0x49273c]
mov ebx, dword [ebp - 4]
movzx ebx, byte [ebx + 0x1d9]
or ecx, dword [ebx*4 + 0x49274c]
or ecx, 0x2000
push ecx
and edx, 0x7f
mov edx, dword [edx*4 + 0x49271c]
and eax, 0x7f
or edx, dword [eax*4 + 0x49272c]
push edx
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00408040
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_IntersectClipRect
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
cmp eax, 1
jne 0x45967a
mov eax, dword [ebp - 0x28]
neg eax
push eax
mov eax, dword [ebp - 0x2c]
neg eax
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetThreadContext
jmp 0x4596c3
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp - 8]
push eax
call sub.gdi32.dll_GetRgnBox
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.004585f8
push eax
push 0
call sub.KERNEL32.DLL_GetProcessHeap
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
mov eax, dword [ebp - 0x38]
neg eax
push eax
mov eax, dword [ebp - 0x3c]
neg eax
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetThreadContext
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1a4]
call fcn.00424fec
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004080d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459706
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004585f8
push eax
call sub.KERNEL32.DLL_GlobalFree
ret
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
mov eax, dword [ebp - 4]
call fcn.00432a84
test al, al
je 0x459735
mov eax, dword [ebp - 4]
test byte [eax + 0x52], 2
je 0x459735
call fcn.00432228
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004328fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret