Function at 0x104fd40
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1116788]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov esi, ecx
xor ebx, ebx
push edi
or eax, 1
push eax
mov dword [esi + 0x74], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x78], ebx
mov word [esi + 0x7e], bx
call fcn.0103b2b6
mov edi, eax
cmp edi, ebx
jl 0x1066ffa
lea eax, [ebp - 0x70]
push eax
push 0x104ff3c
push ebx
mov dword [ebp - 0x70], 0x30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
jne 0x104fe04
push 0xc
pop ecx
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0x70], 0x30
mov dword [ebp - 0x6c], 0x4000
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x7f00
push ebx
mov dword [ebp - 0x5c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebx
mov dword [ebp - 0x54], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x50], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x48], 0x104ff3c
mov dword [ebp - 0x60], 4
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x1066f8b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push ebx
push dword [ebp - 0x28]
push ebx
push ebx
push ebx
push ebx
push 0x46000000
push ebx
push 0x104ff3c
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, ebx
mov dword [esi + 0x74], eax
je 0x1066f8b
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x102e58e
push 0xfffffffffffffffc
push eax
call edi
push esi
push ebx
push dword [esi + 0x74]
call edi
push ebx
push ebx
push 0x129
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x111b088], 0xffffffff
mov word [esi + 0x7e], ax
jne 0x104fe97
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
cmp ax, bx
mov dword [0x111b088], ebx
je 0x104fea4
push 0x10
lea ecx, [ebp - 0x24]
push ecx
movzx eax, ax
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x104fe97
test byte [ebp - 0x15], 8
jne 0x1066f92
cmp dword [0x111b088], 1
je 0x1066fa1
push esi
push 0x101de91
push 1
push dword [esi + 0x74]
call dword [sym.imp.DUSER.dll_CreateGadget]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x1066fc7
push 0x7f
push 0x1d
push ebx
push eax
call dword [sym.imp.DUSER.dll_SetGadgetMessageFilter]
mov al, byte [ebp + 0xc]
neg al
push 0xe2b
sbb eax, eax
and eax, 8
or eax, 0x801
push eax
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetStyle]
push ebx
call fcn.0104ff5b
test al, al
jne 0x1066fd1
push 6
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
push dword [esi + 4]
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.DUSER.dll_SetGadgetRootInfo]
or byte [esi + 0x6c], 2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010032ea
leave
ret 0xc
mov edi, 0x800403e9
jmp 0x1066ffa
mov dword [0x111b088], 1
jmp 0x104fe97
push 1
mov ecx, esi
call fcn.010e27d8
push 0xffffffffffffffec
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xffbfffff
push eax
push 0xffffffffffffffec
push dword [esi + 0x74]
call edi
jmp 0x104fea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1066ffa
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateHalftonePalette]
push edi
push ebx
mov dword [esi + 0x78], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esi + 0x78], ebx
jne 0x104fef8
mov edi, 0x80040002
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x106700b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x74], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x106701c
push eax
call dword [sym.imp.DUSER.dll_DeleteHandle]
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x78]
cmp eax, ebx
je 0x106702d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x78], ebx
mov eax, edi
jmp 0x104ff2a