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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
push edi
or eax, 1
push eax
mov dword [esi + 0x74], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x7c], ebx
mov word [esi + 0x82], bx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x84], ebx
mov byte [esi + 0x88], bl
mov byte [esi + 0x89], bl
mov dword [esi + 0x8c], ebx
call fcn.0101fea1
mov edi, eax
cmp edi, ebx
jl 0x103936e
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea eax, [ebp - 0x70]
push eax
push 0x1007884
push ebx
mov dword [ebp - 0x70], 0x30
call edi
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
jne 0x10391e8
push 0x30
lea eax, [ebp - 0x70]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
mov dword [ebp - 0x70], 0x30
mov dword [ebp - 0x6c], 0x4000
call edi
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_DefWindowProcW]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x48], 0x1007884
mov dword [ebp - 0x60], 4
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x103920e
push ebx
push ebx
call edi
push eax
push ebx
push dword [ebp - 0x28]
push ebx
push ebx
push ebx
push ebx
push 0x46000000
push ebx
push 0x1007884
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, ebx
mov dword [esi + 0x74], eax
jne 0x1039218
mov edi, 0x800403e9
jmp 0x103936e
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x1038d83
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]
push 0xffffffffffffffec
push dword [esi + 0x74]
mov word [esi + 0x82], ax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x400000
je 0x1039279
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 1
mov ecx, esi
call fcn.0102e6e7
cmp dword [0x1051b3c], 0xffffffff
jne 0x10392cc
test byte [ebp + 0x10], 4
je 0x1039290
call dword [sym.imp.KERNEL32.dll_GetThreadUILanguage]
jmp 0x1039296
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
cmp ax, bx
mov dword [0x1051b3c], ebx
je 0x10392f6
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 0x10392cc
test word [ebp - 0x16], 0x800
je 0x10392cc
mov dword [0x1051b3c], 1
cmp dword [0x1051b3c], 1
jne 0x10392f6
push 1
mov ecx, esi
call fcn.0102e6e7
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 0x101f255
push 1
push dword [esi + 0x74]
call sub.DUser.dll_CreateGadget
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x1039317
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x103936e
push 0x7f
push 0x1d
push ebx
push eax
call sub.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 sub.DUser.dll_SetGadgetStyle
push ebx
call fcn.010209cd
test al, al
je 0x10393a4
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 + 0x7c], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esi + 0x7c], ebx
jne 0x10393a4
mov edi, 0x80040002
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x103937f
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0x74], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x103938f
push eax
call sub.DUser.dll_DeleteHandle
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x7c]
cmp eax, ebx
je 0x10393a0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x7c], ebx
mov eax, edi
jmp 0x10393de
push 6
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x7c]
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 sub.DUser.dll_SetGadgetRootInfo
or byte [esi + 0x6c], 2
push 0xa
mov ecx, esi
call fcn.01038589
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010193f0
leave
ret 0xc