Function at 0x10004820
Capabilities:
Allocate thread local storage
Get geographical location
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x170
mov eax, esp
mov dword [eax + 4], 0x16d
mov dword [eax], 0xa49e91
mov eax, dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0x9de
mov dword [ecx], 0x28fb62
mov ecx, dword [sym.imp.GDI32.dll_GetNearestColor]
mov dword [esp + 0x94], eax
call ecx
sub esp, 8
mov dword [esp + 0x150], 0
mov dword [esp + 0x90], eax
jmp 0x10004982
mov dword [esp + 0x12c], 0
jmp 0x10004c45
cmp dword [esp + 0x154], 0x284
jne 0x10004a6a
jmp 0x10004ae4
mov eax, dword [esp + 0x154]
add eax, 1
mov dword [esp + 0x154], eax
jmp 0x1000488e
jmp 0x10004c70
mov eax, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call eax
mov ecx, esp
mov dword [ecx + 4], 0xbb1
mov dword [ecx], str.I90_mFHQxPc
mov ecx, dword [sym.imp.ole32.dll_CoLoadLibrary]
mov dword [esp + 0x8c], eax
call ecx
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x2490b0
mov ecx, dword [sym.imp.WININET.dll_FindCloseUrlCache]
mov dword [esp + 0x88], eax
call ecx
sub esp, 4
mov ecx, esp
lea edx, [esp + 0x158]
mov dword [ecx], edx
mov ecx, dword [sym.imp.USER32.dll_CreateIconIndirect]
mov dword [esp + 0x84], eax
call ecx
sub esp, 4
mov ecx, dword [esp + 0x110]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov esi, esp
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
mov dword [esi + 4], 0xb5b6cd
mov dword [esi], 0x99e890
mov ecx, dword [sym.imp.USER32.dll_MenuItemFromPoint]
mov dword [esp + 0x80], eax
call ecx
sub esp, 0x10
mov dword [esp + 0x7c], eax
jmp 0x10004c5b
lea esp, [ebp - 4]
pop esi
pop ebp
ret
jmp 0x100048a4
cmp dword [esp + 0x150], 0x72
je 0x10004977
mov eax, esp
mov dword [eax], 0x59b828
mov eax, dword [sym.imp.KERNEL32.dll_GetPriorityClass]
call eax
sub esp, 4
lea ecx, [esp + 0xe0]
mov edx, esp
mov dword [edx], 0xae7f7d
mov edx, dword [sym.imp.USER32.dll_CloseDesktop]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ecx
call edx
sub esp, 4
xor ecx, ecx
mov edx, 0x14
mov esi, dword [esp + 0x74]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x14
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
call fcn.1000d570
mov eax, esp
lea ecx, [esp + 0xe0]
mov dword [eax], ecx
mov eax, dword [sym.imp.USER32.dll_FlashWindowEx]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx], 0x931bbc
mov ecx, dword [sym.imp.KERNEL32.dll_GlobalFlags]
mov dword [esp + 0x64], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0xc45d89
mov ecx, dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esp + 0x60], eax
call ecx
sub esp, 4
mov ecx, esp
lea edx, [esp + 0xa0]
mov dword [ecx + 4], edx
mov dword [ecx], 0x74c4da
mov ecx, dword [sym.imp.GDI32.dll_GetViewportExtEx]
mov dword [esp + 0x5c], eax
call ecx
sub esp, 8
mov dword [esp + 0x154], 0
mov dword [esp + 0x58], eax
jmp 0x1000488e
mov eax, dword [esp + 0x154]
mov ecx, 0xcccccccd
mov dword [esp + 0x54], eax
mul ecx
shr edx, 4
imul eax, edx, 0x14
mov ecx, dword [esp + 0x54]
sub ecx, eax
mov eax, ecx
sub eax, 0xb
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], eax
je 0x10004ac2
jmp 0x10004a99
mov eax, dword [esp + 0x50]
sub eax, 1
mov dword [esp + 0x48], eax
jne 0x1000497d
jmp 0x10004aac
mov eax, esp
mov dword [eax], 0xde23ff
mov eax, dword [sym.imp.GDI32.dll_UnrealizeObject]
call eax
sub esp, 4
mov dword [esp + 0x44], eax
mov eax, esp
mov dword [eax + 4], 0xf35
mov dword [eax], 0xfe8fb2
mov eax, dword [sym.imp.KERNEL32.dll_PurgeComm]
call eax
sub esp, 8
mov dword [esp + 0x40], eax
jmp 0x1000497d
mov dword [esp + 0x148], 0
mov dword [esp + 0x144], 0
mov dword [esp + 0x140], 0
mov dword [esp + 0x13c], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x130], 0
mov eax, esp
lea ecx, [esp + 0x130]
mov dword [eax + 4], ecx
mov dword [eax], 0x3c2849
mov eax, dword [sym.imp.USER32.dll_SetMenuInfo]
call eax
sub esp, 8
mov ecx, dword [esp + 0x150]
mov edx, 0xcc29786d
mov dword [esp + 0x3c], eax
mov eax, ecx
mul edx
shr edx, 8
imul eax, edx, 0x141
sub ecx, eax
mov eax, ecx
sub eax, 6
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
je 0x10004be4
jmp 0x10004b7d
mov eax, dword [esp + 0x38]
sub eax, 0x4a
mov dword [esp + 0x30], eax
jne 0x1000487e
jmp 0x10004b90
mov eax, esp
mov dword [eax], 0xef5
mov eax, dword [sym.imp.KERNEL32.dll_SetUserGeoID]
call eax
sub esp, 4
mov ecx, esp
lea edx, [esp + 0xf8]
mov dword [ecx], edx
mov dword [ecx + 8], 0x3a8
mov dword [ecx + 4], 0x3a8
mov ecx, dword [sym.imp.USER32.dll_InflateRect]
mov dword [esp + 0x2c], eax
call ecx
sub esp, 0xc
mov ecx, esp
lea edx, [esp + 0x118]
mov dword [ecx], edx
mov ecx, dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov dword [esp + 0x28], eax
call ecx
sub esp, 4
mov eax, esp
lea ecx, [esp + 0xa8]
mov dword [eax + 4], ecx
mov dword [eax], 0xb2e8c2
mov eax, dword [sym.imp.USER32.dll_GetWindowRect]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x979
mov ecx, dword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov dword [esp + 0x24], eax
call ecx
sub esp, 4
mov word [esp + 0x10e], 0x58
mov dx, word [esp + 0x10e]
movzx ecx, dx
mov esi, esp
mov dword [esi], ecx
mov ecx, dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
mov dword [esp + 0x20], eax
call ecx
sub esp, 4
mov dword [esp + 0x1c], eax
jmp 0x10004c70
cmp dword [esp + 0x12c], 0xa
jne 0x100048be
jmp 0x100048b9
mov eax, dword [esp + 0x12c]
add eax, 1
mov dword [esp + 0x12c], eax
jmp 0x10004c45
xor eax, eax
mov ecx, 0x24
lea edx, [esp + 0xb8]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x24
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call fcn.1000d570
mov eax, esp
lea ecx, [esp + 0xb8]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call eax
sub esp, 4
mov eax, dword [esp + 0x150]
add eax, 1
mov dword [esp + 0x150], eax
jmp 0x10004982