Function at 0x4c3510
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x14c]
push ebx
sub esp, 0x1c0
mov eax, dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], edi
mov dword [esp + 4], 0x38
mov dword [esp], 0x409
mov dword [ebp - 0x1a8], eax
call eax
sub esp, 0x10
test eax, eax
je 0x4c3ff0
lea eax, [ebp - 0x1a0]
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x20000001
mov dword [esp], 0x409
mov esi, dword [ebp - 0x1a8]
call esi
sub esp, 0x10
mov ebx, eax
mov eax, 0x197
call fcn.004b3be0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x5db4d8
mov dword [esp], ebx
call fcn.004b46e0
mov eax, 0x198
call fcn.004b3be0
mov eax, dword [ebp - 0x1a0]
mov dword [esp + 4], str.got_0x_08lx_n
cmp eax, 0x409
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], edi
mov dword [esp + 4], 0x5c
mov dword [esp], 9
call esi
sub esp, 0x10
test eax, eax
jne 0x4c3bb8
mov eax, 0x1d0
call fcn.004b3be0
mov dword [esp], str.English_neutral_locale_not_supported_n
call fcn.004b46b0
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], edi
mov dword [esp + 4], 0x38
mov dword [esp], 0x19
mov eax, dword [ebp - 0x1a8]
call eax
sub esp, 0x10
test eax, eax
je 0x4c400e
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], edi
mov dword [esp + 4], 0x10000038
mov dword [esp], 0x19
mov eax, dword [ebp - 0x1a8]
call eax
sub esp, 0x10
test eax, eax
je 0x4c402c
lea eax, [ebp - 0x19c]
mov byte [ebp - 0x19c], 0x61
mov ebx, dword fs:[0x18]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10000038
mov dword [esp], 0x19
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
sub esp, 0x10
mov esi, eax
mov eax, 0x1e3
call fcn.004b3be0
xor eax, eax
test esi, esi
mov dword [esp + 4], str.LOCALE_RETURN_GENITIVE_NAMES_should_fail_with_GetLocaleInfoA_n
sete al
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x1e4
call fcn.004b3be0
mov dword [esp + 4], str.Expected_buffer_to_be_untouched_n
xor eax, eax
cmp byte [ebp - 0x19c], 0x61
sete al
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x1e5
call fcn.004b3be0
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_ERROR_INVALID_FLAGS__got__lx_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x3ec
sete al
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x61
mov dword [ebx + 0x34], 0xdeadbeef
mov word [ebp - 0x14c], ax
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], edi
mov dword [esp + 4], 0x10000000
mov dword [esp], 0x19
mov eax, dword [ebp - 0x1a8]
call eax
sub esp, 0x10
mov esi, eax
mov eax, 0x1eb
call fcn.004b3be0
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.LOCALE_RETURN_GENITIVE_NAMES_itself_doesnt_return_anything__got__ld_n
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x1ed
call fcn.004b3be0
mov dword [esp + 4], str.Expected_buffer_to_be_untouched_n
xor eax, eax
cmp word [ebp - 0x14c], 0x61
sete al
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x1ee
call fcn.004b3be0
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_ERROR_INVALID_FLAGS__got__lx_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x3ec
lea ebx, [ebp - 0xac]
sete al
mov dword [esp], eax
call fcn.004b46e0
mov eax, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [ebp - 0x1a4], 0x38
mov dword [ebp - 0x1ac], eax
nop
mov eax, dword [ebp - 0x1a4]
xor esi, esi
mov word [ebp - 0x14c], si
or eax, 0x10000000
mov dword [ebp - 0x1b4], eax
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 0x19
mov eax, dword [ebp - 0x1a8]
call eax
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1f6
mov dword [esp + 4], str.Expected_non_zero_result_n
mov dword [esp], esi
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
cmp word [ebp - 0x14c], 0
mov dword [eax + 4], 0x1f7
je 0x4c3fe0
mov edx, edi
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4c3878
sub edx, edi
mov eax, edi
sar edx, 1
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4c3890
sub eax, edi
sar eax, 1
add eax, 1
cmp esi, eax
mov dword [esp + 0xc], edx
sete al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str.Expected_actual_length__got__ld__length__d_n
mov dword [esp], eax
call fcn.004b46e0
xor ecx, ecx
mov word [ebp - 0xac], cx
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x1a4]
mov dword [esp], 0x19
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1a8]
call eax
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1fb
mov dword [esp + 4], str.Expected_non_zero_result_n
mov dword [esp], esi
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
cmp word [ebp - 0xac], 0
mov dword [eax + 4], 0x1fc
je 0x4c3fc0
mov edx, ebx
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x4c3940
sub edx, ebx
mov eax, ebx
sar edx, 1
nop
add eax, 2
cmp word [eax], 0
jne 0x4c3950
sub eax, ebx
sar eax, 1
add eax, 1
cmp esi, eax
mov dword [esp + 0xc], edx
sete al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str.Expected_actual_length__got__ld__length__d_n
mov dword [esp], eax
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1ff
mov eax, dword [ebp - 0x1a4]
lea esi, [eax - 0x37]
mov dword [ebp - 0x1b0], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
mov eax, dword [ebp - 0x1ac]
call eax
sub esp, 8
test eax, eax
setne al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str.Expected_genitive_name_to_differ__got_the_same_for_month__d_n
mov dword [esp], eax
call fcn.004b46e0
xor edx, edx
mov word [ebp - 0x14c], dx
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x1b4]
mov dword [esp], 0x409
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1a8]
call eax
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x206
mov dword [esp + 4], str.Expected_non_zero_result_n
mov dword [esp], esi
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
cmp word [ebp - 0x14c], 0
mov dword [eax + 4], 0x207
je 0x4c3fb0
mov edx, edi
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4c3a50
sub edx, edi
mov eax, edi
sar edx, 1
nop
add eax, 2
cmp word [eax], 0
jne 0x4c3a60
sub eax, edi
sar eax, 1
add eax, 1
cmp esi, eax
mov dword [esp + 0xc], edx
sete al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str.Expected_actual_length__got__ld__length__d_n
mov dword [esp], eax
call fcn.004b46e0
xor eax, eax
mov word [ebp - 0xac], ax
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x1a4]
mov dword [esp], 0x409
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1a8]
call eax
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x20b
mov dword [esp + 4], str.Expected_non_zero_result_n
mov dword [esp], esi
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
cmp word [ebp - 0xac], 0
mov dword [eax + 4], 0x20c
je 0x4c3fd0
mov edx, ebx
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x4c3b10
sub edx, ebx
mov eax, ebx
sar edx, 1
nop
add eax, 2
cmp word [eax], 0
jne 0x4c3b20
sub eax, ebx
sar eax, 1
add eax, 1
cmp esi, eax
mov dword [esp + 0xc], edx
sete al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str.Expected_actual_length__got__ld__length__d_n
mov dword [esp], eax
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x20f
mov dword [esp + 4], ebx
mov dword [esp], edi
mov eax, dword [ebp - 0x1ac]
call eax
mov ecx, dword [ebp - 0x1b0]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 8], ecx
movzx eax, al
mov dword [esp + 4], str.Expected_same_names__got_different_for_month__d_n
mov dword [esp], eax
call fcn.004b46e0
add dword [ebp - 0x1a4], 1
mov eax, dword [ebp - 0x1a4]
cmp eax, 0x44
jne 0x4c37f0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x1a3
call fcn.004b3be0
mov eax, edi
shr eax, 0x10
mov dword [ebp - 0x1b8], eax
je 0x4c404a
mov dword [esp + 4], 0xffffffff
mov ebx, 0x5d886c
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x4c3bfe
mov edx, 0xffffffff
mov eax, edi
call fcn.004b38c0
mov ebx, eax
mov eax, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [esp + 4], 0x5e174c
mov dword [esp], edi
mov dword [ebp - 0x1ac], eax
call eax
sub esp, 8
test eax, eax
sete al
mov dword [esp + 8], ebx
movzx eax, al
mov dword [esp + 4], str.got_wrong_name__s_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], edi
mov dword [esp + 4], 6
mov dword [esp], 9
mov eax, dword [ebp - 0x1a8]
call eax
sub esp, 0x10
mov ebx, eax
mov eax, 0x1a6
call fcn.004b3be0
mov dword [esp + 8], ebx
mov dword [esp], ebx
mov dword [esp + 4], 0x5db4d8
call fcn.004b46e0
mov ebx, dword [sym.imp.kernel32.dll_GetSystemDefaultLCID]
call ebx
and eax, 0x3ff
cmp eax, 9
je 0x4c40c7
mov eax, 0x1aa
call fcn.004b3be0
mov dword [esp], str.Non_English_locale_n
call fcn.004b4030
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], edi
mov dword [esp + 4], 2
mov dword [esp], 9
mov eax, dword [ebp - 0x1a8]
call eax
sub esp, 0x10
mov esi, eax
mov eax, 0x1b0
call fcn.004b3be0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x5db4d8
mov dword [esp], esi
call fcn.004b46e0
call ebx
and eax, 0x3ff
cmp eax, 9
je 0x4c4064
mov eax, 0x1b4
call fcn.004b3be0
mov dword [esp], str.Non_English_locale_n
call fcn.004b4030
mov esi, 0x5e57a0
jmp 0x4c3de5
mov dword [esp + 4], 0xffffffff
mov ebx, 0x5d886c
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x4c3d4b
mov edx, 0xffffffff
mov eax, edi
call fcn.004b38c0
mov ebx, eax
mov eax, dword [ebp - 0x1b4]
test eax, eax
je 0x4c3f3a
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x1a4], 0x5d886c
sub esp, 8
test eax, eax
jne 0x4c3d8d
mov edx, 0xffffffff
mov eax, esi
call fcn.004b38c0
mov dword [ebp - 0x1a4], eax
lea eax, [esi + 6]
mov dword [esp], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1ac]
call eax
mov edx, eax
sub esp, 8
mov eax, 1
test edx, edx
je 0x4c3dba
xor eax, eax
cmp word [esi + 0x2c], 0
jne 0x4c3f80
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp - 0x1a4]
add esi, 0x4c
mov dword [esp + 4], str._s:_got__s_n
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.004b46e0
cmp word [esi], 0
je 0x4c360e
mov ebx, dword [esi + 0x24]
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x1a0], 0
mov dword [esp + 0xc], 2
and ebx, 0x3ff
mov dword [esp + 8], eax
mov dword [esp + 4], 0x20000001
mov dword [esp], ebx
mov eax, dword [ebp - 0x1a8]
call eax
sub esp, 0x10
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1c4
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x1b0], eax
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x1b4], eax
je 0x4c3f60
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x5d886c
sub esp, 8
test eax, eax
jne 0x4c3e83
mov edx, 0xffffffff
mov eax, esi
call fcn.004b38c0
mov edx, eax
mov ecx, dword [ebp - 0x1a0]
mov eax, 1
cmp dword [esi + 0x24], ecx
je 0x4c3ead
xor eax, eax
test ecx, ecx
je 0x4c3ead
cmp dword [esi + 0x28], ecx
sete cl
xor eax, eax
cmp dword [0x8f0770], 0
sete al
and eax, ecx
mov ecx, dword [ebp - 0x1a4]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x1b0]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 4], str._s:_got_wrong_lcid_0x_04lx__expected_0x_04lx_n
call fcn.004b46e0
mov dword [esp + 0xc], 0x50
mov dword [esp + 8], edi
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
mov eax, dword [ebp - 0x1a8]
call eax
sub esp, 0x10
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1c9
mov eax, dword [ebp - 0x1b8]
test eax, eax
jne 0x4c3d20
movzx eax, di
mov dword [esp], 0x5d8876
mov dword [esp + 4], eax
call fcn.004b35c0
mov ebx, eax
mov eax, dword [ebp - 0x1b4]
test eax, eax
jne 0x4c3d59
movzx eax, si
mov dword [esp], 0x5d8876
mov dword [esp + 4], eax
call fcn.004b35c0
mov dword [ebp - 0x1a4], eax
jmp 0x4c3d8d
movzx eax, si
mov dword [esp], 0x5d8876
mov dword [esp + 4], eax
call fcn.004b35c0
mov edx, eax
jmp 0x4c3e83
lea eax, [esi + 0x2c]
mov dword [esp], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1ac]
call eax
sub esp, 8
or eax, dword [0x8f0770]
sete al
movzx eax, al
jmp 0x4c3dba
mov eax, 1
xor edx, edx
jmp 0x4c3a70
mov eax, 1
xor edx, edx
jmp 0x4c3960
mov eax, 1
xor edx, edx
jmp 0x4c3b30
mov eax, 1
xor edx, edx
jmp 0x4c38a0
mov eax, 0x192
call fcn.004b3be0
mov dword [esp], str.GetLocaleInfoW___isnt_implemented_n
call fcn.004b46b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x1d4
call fcn.004b3be0
mov dword [esp], str.LANG_RUSSIAN_locale_data_unavailable_n
call fcn.004b46b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x1da
call fcn.004b3be0
mov dword [esp], str.LOCALE_RETURN_GENITIVE_NAMES_isnt_supported_n
call fcn.004b46b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, di
mov dword [esp], 0x5d8876
mov dword [esp + 4], eax
call fcn.004b35c0
mov ebx, eax
jmp 0x4c3bfe
call dword [sym.imp.kernel32.dll_GetThreadLocale]
and eax, 0x3ff
cmp eax, 9
jne 0x4c3cfd
mov eax, 0x1b7
call fcn.004b3be0
mov edx, 0xffffffff
mov eax, edi
call fcn.004b3ad0
mov dword [esp + 4], edi
mov ebx, eax
mov dword [esp], str.English__United_States_
mov eax, dword [ebp - 0x1ac]
call eax
sub esp, 8
test eax, eax
sete al
mov dword [esp + 8], ebx
movzx eax, al
mov dword [esp + 4], str.got_wrong_name__s_n
mov dword [esp], eax
call fcn.004b46e0
jmp 0x4c3d13
call dword [sym.imp.kernel32.dll_GetThreadLocale]
and eax, 0x3ff
cmp eax, 9
jne 0x4c3c91
mov eax, 0x1ad
call fcn.004b3be0
mov edx, 0xffffffff
mov eax, edi
call fcn.004b3ad0
mov dword [esp + 4], edi
mov esi, eax
mov dword [esp], str.United_States
mov eax, dword [ebp - 0x1ac]
call eax
sub esp, 8
test eax, eax
sete al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str.got_wrong_name__s_n
mov dword [esp], eax
call fcn.004b46e0
jmp 0x4c3ca7