Function at 0x4084c2
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.004086e1
push 8
pop edi
push edi
mov esi, 0x43b9d0
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 0x41b195
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 0x408552
mov ecx, 0x402208
lea eax, [ebp - 0x104]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4086d7
test dx, dx
je 0x40854b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4086d7
add eax, 4
add ecx, 4
test dx, dx
jne 0x408521
xor eax, eax
mov dword [0x42d0c4], eax
and dword [0x42d57c], 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 0x40858e
movzx eax, word [ebp - 0x104]
sub eax, 0x30
jne 0x41b1cd
and dword [0x42d57c], eax
mov dword [0x42d578], 0x4021f4
push esi
lea eax, [ebp - 0x104]
mov dword [0x42d574], 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 0x4085c3
cmp word [ebp - 0x104], cx
jne 0x4085c3
mov dword [0x42d574], 4
push edi
mov esi, 0x43b9c0
push esi
push 0x1d
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b20d
push 0x20
pop esi
push esi
mov edi, 0x43b960
push edi
push 0x31
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b245
push esi
mov edi, 0x43b920
push edi
push 0x32
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b27d
push esi
mov edi, 0x43b8e0
push edi
push 0x33
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b2b5
push esi
mov edi, 0x43b8a0
push edi
push 0x34
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b2ed
push esi
mov edi, 0x43b860
push edi
push 0x35
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b325
push esi
mov edi, 0x43b820
push edi
push 0x36
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b35d
push esi
mov edi, 0x43b7e0
push edi
push 0x37
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b395
push 8
pop edi
push edi
mov esi, 0x43b9b0
push esi
push 0xe
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b3cb
push edi
mov esi, 0x43b9a0
push esi
push 0xf
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b403
push 0x4021ec
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.00416ad0
leave
ret
sbb eax, eax
or eax, 1
jmp 0x40854d
mov edx, 0x4038d8
mov ecx, edi
sub edx, esi
lea eax, [ecx + 0x7ffffff6]
test eax, eax
je 0x41b1bc
movzx eax, word [edx + esi]
test ax, ax
je 0x41b1bc
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x41b19e
test ecx, ecx
jne 0x41b1c3
sub esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x4084fc
sub eax, 1
je 0x41b1f4
sub eax, 1
jne 0x40858e
mov dword [0x42d57c], 2
mov dword [0x42d578], 0x4038f0
jmp 0x40858e
mov dword [0x42d57c], 1
mov dword [0x42d578], 0x4038dc
jmp 0x40858e
mov edx, 0x403720
mov ecx, edi
sub edx, esi
lea eax, [ecx + 0x7ffffff6]
test eax, eax
je 0x41b234
movzx eax, word [edx + esi]
test ax, ax
je 0x41b234
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x41b216
test ecx, ecx
jne 0x41b23b
sub esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x4085db
mov edx, 0x403904
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b26c
movzx eax, word [edx + edi]
test ax, ax
je 0x41b26c
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b24e
test ecx, ecx
jne 0x41b273
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x4085f6
mov edx, 0x40390c
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b2a4
movzx eax, word [edx + edi]
test ax, ax
je 0x41b2a4
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b286
test ecx, ecx
jne 0x41b2ab
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x40860e
mov edx, 0x403914
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b2dc
movzx eax, word [edx + edi]
test ax, ax
je 0x41b2dc
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b2be
test ecx, ecx
jne 0x41b2e3
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x408626
mov edx, 0x40391c
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b314
movzx eax, word [edx + edi]
test ax, ax
je 0x41b314
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b2f6
test ecx, ecx
jne 0x41b31b
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x40863e
mov edx, 0x403924
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b34c
movzx eax, word [edx + edi]
test ax, ax
je 0x41b34c
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b32e
test ecx, ecx
jne 0x41b353
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x408656
mov edx, 0x40392c
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b384
movzx eax, word [edx + edi]
test ax, ax
je 0x41b384
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b366
test ecx, ecx
jne 0x41b38b
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x40866e
mov ecx, 0x403934
sub ecx, edi
lea eax, [esi + 0x7fffffde]
test eax, eax
je 0x41b3ba
movzx eax, word [ecx + edi]
test ax, ax
je 0x41b3ba
mov word [edi], ax
add edi, 2
sub esi, 1
jne 0x41b39c
test esi, esi
jne 0x41b3c1
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x408686
mov edx, 0x402424
mov ecx, edi
sub edx, esi
lea eax, [ecx + 0x7ffffff6]
test eax, eax
je 0x41b3f2
movzx eax, word [edx + esi]
test ax, ax
je 0x41b3f2
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x41b3d4
test ecx, ecx
jne 0x41b3f9
sub esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x4086a1
mov ecx, 0x40393c
sub ecx, esi
lea eax, [edi + 0x7ffffff6]
test eax, eax
je 0x41b428
movzx eax, word [ecx + esi]
test ax, ax
je 0x41b428
mov word [esi], ax
add esi, 2
sub edi, 1
jne 0x41b40a
test edi, edi
jne 0x41b42f
sub esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x4086b9