Function at 0x408572
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00408791
push 8
pop edi
push edi
mov esi, 0x43b9e0
mov ebx, eax
push esi
push 0x1e
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b2b7
mov esi, 0x80
lea eax, [ebp - 0x104]
push esi
push eax
push 0x23
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x408602
mov ecx, 0x402218
lea eax, [ebp - 0x104]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408787
test dx, dx
je 0x4085fb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408787
add eax, 4
add ecx, 4
test dx, dx
jne 0x4085d1
xor eax, eax
mov dword [0x42d0c4], eax
and dword [0x42d58c], 0
lea eax, [ebp - 0x104]
push esi
push eax
push 0x21
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x40863e
movzx eax, word [ebp - 0x104]
sub eax, 0x30
jne 0x41b2ef
and dword [0x42d58c], eax
mov dword [0x42d588], 0x402204
push esi
lea eax, [ebp - 0x104]
mov dword [0x42d584], 2
push eax
push 0x24
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
push 0x31
pop ecx
test eax, eax
je 0x408673
cmp word [ebp - 0x104], cx
jne 0x408673
mov dword [0x42d584], 4
push edi
mov esi, 0x43b9d0
push esi
push 0x1d
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b32f
push 0x20
pop esi
push esi
mov edi, 0x43b970
push edi
push 0x31
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b367
push esi
mov edi, 0x43b930
push edi
push 0x32
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b39f
push esi
mov edi, 0x43b8f0
push edi
push 0x33
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b3d7
push esi
mov edi, 0x43b8b0
push edi
push 0x34
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b40f
push esi
mov edi, 0x43b870
push edi
push 0x35
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b447
push esi
mov edi, 0x43b830
push edi
push 0x36
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b47f
push esi
mov edi, 0x43b7f0
push edi
push 0x37
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b4b7
push 8
pop edi
push edi
mov esi, 0x43b9c0
push esi
push 0xe
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b4ed
push edi
mov esi, 0x43b9b0
push esi
push 0xf
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b525
push 0x4021fc
push 0
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b50
leave
ret
sbb eax, eax
or eax, 1
jmp 0x4085fd
mov edx, 0x403994
mov ecx, edi
sub edx, esi
lea eax, [ecx + 0x7ffffff6]
test eax, eax
je 0x41b2de
movzx eax, word [edx + esi]
test ax, ax
je 0x41b2de
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x41b2c0
test ecx, ecx
jne 0x41b2e5
sub esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x4085ac
sub eax, 1
je 0x41b316
sub eax, 1
jne 0x40863e
mov dword [0x42d58c], 2
mov dword [0x42d588], 0x4039ac
jmp 0x40863e
mov dword [0x42d58c], 1
mov dword [0x42d588], 0x403998
jmp 0x40863e
mov edx, 0x4037e0
mov ecx, edi
sub edx, esi
lea eax, [ecx + 0x7ffffff6]
test eax, eax
je 0x41b356
movzx eax, word [edx + esi]
test ax, ax
je 0x41b356
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x41b338
test ecx, ecx
jne 0x41b35d
sub esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x40868b
mov edx, 0x4039c0
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b38e
movzx eax, word [edx + edi]
test ax, ax
je 0x41b38e
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b370
test ecx, ecx
jne 0x41b395
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x4086a6
mov edx, 0x4039c8
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b3c6
movzx eax, word [edx + edi]
test ax, ax
je 0x41b3c6
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b3a8
test ecx, ecx
jne 0x41b3cd
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x4086be
mov edx, 0x4039d0
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b3fe
movzx eax, word [edx + edi]
test ax, ax
je 0x41b3fe
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b3e0
test ecx, ecx
jne 0x41b405
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x4086d6
mov edx, 0x4039d8
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b436
movzx eax, word [edx + edi]
test ax, ax
je 0x41b436
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b418
test ecx, ecx
jne 0x41b43d
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x4086ee
mov edx, 0x4039e0
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b46e
movzx eax, word [edx + edi]
test ax, ax
je 0x41b46e
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b450
test ecx, ecx
jne 0x41b475
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x408706
mov edx, 0x4039e8
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b4a6
movzx eax, word [edx + edi]
test ax, ax
je 0x41b4a6
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b488
test ecx, ecx
jne 0x41b4ad
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x40871e
mov ecx, 0x4039f0
sub ecx, edi
lea eax, [esi + 0x7fffffde]
test eax, eax
je 0x41b4dc
movzx eax, word [ecx + edi]
test ax, ax
je 0x41b4dc
mov word [edi], ax
add edi, 2
sub esi, 1
jne 0x41b4be
test esi, esi
jne 0x41b4e3
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x408736
mov edx, 0x402434
mov ecx, edi
sub edx, esi
lea eax, [ecx + 0x7ffffff6]
test eax, eax
je 0x41b514
movzx eax, word [edx + esi]
test ax, ax
je 0x41b514
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x41b4f6
test ecx, ecx
jne 0x41b51b
sub esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x408751
mov ecx, 0x4039f8
sub ecx, esi
lea eax, [edi + 0x7ffffff6]
test eax, eax
je 0x41b54a
movzx eax, word [ecx + esi]
test ax, ax
je 0x41b54a
mov word [esi], ax
add esi, 2
sub edi, 1
jne 0x41b52c
test edi, edi
jne 0x41b551
sub esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x408769