Function at 0x4140e1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x45190c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
or eax, 0xffffffff
push 0xaa
xor esi, esi
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0xf8]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
jne 0x414133
mov eax, 0x8ff00003
jmp 0x4143e2
mov ecx, 0xc00
cmp dword [edi + 8], ecx
jne 0x414154
push 0x55
lea eax, [ebp - 0xf8]
push eax
push ecx
call fcn.0041a547
lea eax, [ebp - 0xf8]
jmp 0x414157
mov eax, dword [edi + 4]
xor ecx, ecx
mov dword [ebp - 0x108], eax
push ebx
push 4
mov word [ebp - 0x34], cx
mov word [ebp - 0x4c], cx
mov word [ebp - 0x14], cx
mov word [ebp - 0x20], cx
mov word [ebp - 0xc], cx
lea ecx, [ebp - 0x14]
push ecx
push 5
lea ecx, [ebp - 0x20]
push ecx
push 4
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00416322
test eax, eax
setne bl
xor eax, eax
cmp ax, word [ebp - 0xc]
jne 0x4141c0
push 4
lea eax, [ebp - 0xc]
push eax
push 0x59
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x4141c0
xor eax, eax
movzx ebx, bl
cmp ax, word [ebp - 0xc]
push 1
pop eax
cmovne ebx, eax
xor eax, eax
cmp ax, word [ebp - 0x14]
jne 0x4141ef
push 4
lea eax, [ebp - 0x14]
push eax
push 0x5a
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x4141ef
xor ecx, ecx
movzx ebx, bl
cmp cx, word [ebp - 0x14]
push 1
pop ecx
cmovne ebx, ecx
test bl, bl
je 0x4143c7
lea ecx, [ebp - 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4141fd
sub ecx, edx
sar ecx, 1
je 0x414224
push esi
xor eax, eax
push esi
inc eax
push eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041503f
mov eax, dword [ebp - 0xfc]
lea ecx, [ebp - 0xc]
cmp eax, dword [edi]
lea edx, [ecx + 2]
push 0xffffffffffffffff
pop ebx
cmove eax, ebx
mov dword [ebp - 0xfc], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41423e
sub ecx, edx
sar ecx, 1
je 0x4142bb
lea edx, [ebp - 0x20]
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x414255
sub edx, ebx
sar edx, 1
je 0x4142b8
push ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
push 9
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 0x42be50
lea eax, [ebp - 0x34]
push 9
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea ecx, [ebp - 0x20]
add esp, 0x20
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x414295
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x34]
push 9
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 - 0x34]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4142c1
sub ecx, edx
sar ecx, 1
je 0x4142e8
push esi
xor eax, eax
push esi
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0041503f
mov edx, dword [ebp - 0x100]
lea ecx, [ebp - 0x14]
cmp edx, dword [edi]
cmove edx, ebx
lea ebx, [ecx + 2]
mov dword [ebp - 0x100], edx
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4142ff
sub ecx, ebx
sar ecx, 1
je 0x414368
push 7
push 0x42be54
lea eax, [ebp - 0x4c]
push 0xb
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea ecx, [ebp - 0x14]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41432c
sub ecx, edx
lea eax, [ebp - 0x14]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x4c]
push 0xb
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x104]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041503f
mov edx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x104]
cmp eax, dword [edi]
push 0xffffffffffffffff
pop ebx
cmove eax, ebx
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0xfc], ebx
jne 0x41438c
cmp eax, ebx
jne 0x41438c
cmp edx, ebx
je 0x4143c0
mov eax, dword [edi + 0x10]
cmp edx, ebx
mov ecx, dword [ebp - 0xfc]
cmovne ecx, edx
mov dword [eax + 0x10], ecx
mov ecx, dword [edi + 0x10]
mov eax, dword [ebp - 0x104]
mov dword [ecx + 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [eax], ebx
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 ecx, dword [ebp + 0xc]
mov edx, dword [edi + 0x10]
push dword [edx + ecx*4]
call fcn.00418e6c
test al, al
mov ecx, 0x80004005
pop ebx
cmovne esi, ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00424816
mov esp, ebp
pop ebp
ret 8