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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 0x10]
push ebx
push esi
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.01010ff6
mov edi, eax
cmp edi, ebx
jl 0x1013b0b
lea eax, [ebp - 0x68]
push eax
push 0x1003714
push ebx
mov dword [ebp - 0x68], 0x30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
jne 0x10139d1
push 0xc
pop ecx
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0x68], 0x30
mov dword [ebp - 0x64], 0x4000
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x7f00
push ebx
mov dword [ebp - 0x54], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebx
mov dword [ebp - 0x4c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x48], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x40], 0x1003714
mov dword [ebp - 0x58], 4
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x10139d1
mov edi, 0x800403e9
jmp 0x1013b0b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push ebx
push dword [ebp + 8]
push ebx
push ebx
push ebx
push ebx
push 0x46000000
push ebx
push 0x1003714
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, ebx
mov dword [esi + 0x74], eax
je 0x10139c7
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x101366a
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 + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x1029c74], 0xffffffff
mov word [esi + 0x7e], ax
jne 0x1013a66
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
cmp ax, bx
mov dword [0x1029c74], ebx
je 0x1013a90
push 0x10
lea ecx, [ebp - 0x38]
push ecx
movzx eax, ax
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1013a66
test byte [ebp - 0x29], 8
je 0x1013a66
mov dword [0x1029c74], 1
cmp dword [0x1029c74], 1
jne 0x1013a90
push 1
mov ecx, esi
call fcn.01013317
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
push esi
push 0x1010900
push 1
push dword [esi + 0x74]
call dword [sym.imp.DUSER.dll_CreateGadget]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x1013ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1013b0b
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.0101429d
test al, al
je 0x1013b42
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 0x1013b42
mov edi, 0x80040002
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x1013b1c
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x74], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1013b2d
push eax
call dword [sym.imp.DUSER.dll_DeleteHandle]
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x78]
cmp eax, ebx
je 0x1013b3e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x78], ebx
mov eax, edi
jmp 0x1013b74
push 6
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x78]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.DUSER.dll_SetGadgetRootInfo]
or byte [esi + 0x6c], 2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc