Function at 0x4108a6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x4ad15c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
or eax, 0xffffffff
mov dword [ebp - 0x15c], edx
push 0xaa
xor esi, esi
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], eax
mov edi, ecx
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x148]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
jne 0x4108fe
mov eax, 0x8ff00003
jmp 0x410bda
mov ecx, 0xc00
cmp dword [edi + 8], ecx
jne 0x410921
push esi
push 0x55
lea eax, [ebp - 0x148]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
lea eax, [ebp - 0x148]
jmp 0x410924
mov eax, dword [edi + 4]
xor ecx, ecx
mov dword [ebp - 0x158], eax
push ecx
mov word [ebp - 0x64], cx
lea edx, [ebp - 0x18]
mov word [ebp - 0x84], cx
mov word [ebp - 0x98], cx
mov word [ebp - 0x2c], cx
mov word [ebp - 0x40], cx
mov word [ebp - 0x18], cx
lea ecx, [ebp - 0x98]
push ecx
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push ecx
lea ecx, [ebp - 0x40]
push ecx
push ecx
mov ecx, eax
call fcn.0041186a
mov bl, al
xor eax, eax
cmp ax, word [ebp - 0x18]
jne 0x410998
push 9
lea eax, [ebp - 0x18]
push eax
push 0x59
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x410998
xor eax, eax
movzx ebx, bl
cmp ax, word [ebp - 0x18]
push 1
pop eax
cmovne ebx, eax
xor eax, eax
cmp ax, word [ebp - 0x2c]
jne 0x4109c7
push 9
lea eax, [ebp - 0x2c]
push eax
push 0x5a
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x4109c7
xor ecx, ecx
movzx ebx, bl
cmp cx, word [ebp - 0x2c]
push 1
pop ecx
cmovne ebx, ecx
test bl, bl
je 0x410bbd
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4109d5
sub ecx, edx
sar ecx, 1
je 0x4109fa
push esi
xor eax, eax
lea edx, [ebp - 0x14c]
push esi
inc eax
lea ecx, [ebp - 0x18]
push eax
call fcn.00411abd
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x18]
cmp eax, dword [edi]
lea edx, [ecx + 2]
push 0xffffffffffffffff
pop ebx
cmove eax, ebx
mov dword [ebp - 0x14c], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x410a14
sub ecx, edx
sar ecx, 1
je 0x410a91
lea edx, [ebp - 0x40]
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x410a2b
sub edx, ebx
sar edx, 1
je 0x410a8e
push ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x64]
push 0x12
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor eax, eax
inc eax
push eax
push 0x481fa4
lea eax, [ebp - 0x64]
push 0x12
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea ecx, [ebp - 0x40]
add esp, 0x20
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x410a6b
sub ecx, edx
lea eax, [ebp - 0x40]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x64]
push 0x12
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
or ebx, 0xffffffff
lea ecx, [ebp - 0x64]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x410a97
sub ecx, edx
sar ecx, 1
je 0x410abc
push esi
xor eax, eax
lea edx, [ebp - 0x150]
push esi
inc eax
lea ecx, [ebp - 0x64]
push eax
call fcn.00411abd
mov edx, dword [ebp - 0x150]
lea ecx, [ebp - 0x2c]
cmp edx, dword [edi]
cmove edx, ebx
lea ebx, [ecx + 2]
mov dword [ebp - 0x150], edx
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x410ad3
sub ecx, ebx
sar ecx, 1
je 0x410b43
push 7
push 0x482000
lea eax, [ebp - 0x84]
push 0x10
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea ecx, [ebp - 0x2c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x410b03
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x84]
push 0x10
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea edx, [ebp - 0x154]
lea ecx, [ebp - 0x84]
push esi
push esi
push esi
call fcn.00411abd
mov edx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x154]
cmp eax, dword [edi]
push 0xffffffffffffffff
pop ebx
cmove eax, ebx
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x14c], ebx
jne 0x410b67
cmp eax, ebx
jne 0x410b67
cmp edx, ebx
je 0x410bb6
mov eax, dword [edi + 0x10]
cmp edx, ebx
mov ecx, dword [ebp - 0x14c]
cmovne ecx, edx
mov dword [eax + 0x10], ecx
mov ecx, dword [edi + 0x10]
mov eax, dword [ebp - 0x154]
mov dword [ecx + 0x14], eax
mov ecx, ebx
cmp dword [ebp - 0x150], ebx
mov eax, dword [ebp - 0x14c]
cmovne eax, dword [ebp - 0x150]
cmp dword [edi + 4], esi
cmovne ecx, eax
mov eax, dword [edi + 0x10]
mov dword [eax], ecx
mov eax, dword [edi + 0x10]
mov dword [eax + 4], ebx
mov eax, dword [edi + 0x10]
mov dword [eax + 8], ebx
mov eax, dword [edi + 0x10]
mov dword [eax + 0xc], ebx
or dword [edi + 0x20], 0x1f8
mov eax, dword [ebp - 0x15c]
mov ecx, dword [edi + 0x10]
mov ecx, dword [ecx + eax*4]
call fcn.0040e9be
test al, al
mov ecx, 0x80004005
cmovne esi, ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a72f
mov esp, ebp
pop ebp
ret