Function at 0x10006c80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x40
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test byte [0x1000c080], 8
jne 0x10006e80
test ebx, ebx
je 0x10006df8
mov edx, edi
mov ecx, edi
and edx, 0x3ff
shr cx, 0xa
cmp edx, 9
ja 0x10006e10
mov eax, 0x212
bt eax, edx
jae 0x10006e10
cmp cx, 1
mov dword [ebp - 0x30], edx
sbb eax, eax
mov dword [ebp - 0x2c], ecx
and eax, 0xfff
mov dword [ebx], edi
add eax, 2
mov dword [ebp - 0x28], eax
xor eax, eax
mov word [ebx + 4], ax
xor eax, eax
mov word [ebx + 0x10], ax
lea eax, [ebx + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], 6
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], eax
mov eax, dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov dword [esp + 4], 0x59
mov dword [esp], edi
mov dword [ebp - 0x20], eax
call eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
sub esp, 0x10
test eax, eax
mov esi, eax
je 0x10006df8
mov eax, 0x212
bt eax, edx
jae 0x10006d3e
cmp cx, 1
je 0x10006d44
cmp cx, 1
jbe 0x10006d89
mov eax, 6
lea edx, [esi - 1]
mov ecx, 0x2d
sub eax, esi
mov word [ebp + edx*2 - 0x18], cx
mov dword [ebp - 0x2c], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x5a
lea eax, [eax + esi*2]
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
call eax
mov edx, dword [ebp - 0x2c]
sub esp, 0x10
test eax, eax
je 0x10006ec0
add esi, eax
mov dword [esp + 0x14], 6
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x100
mov dword [esp + 8], eax
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_LCMapStringW]
sub esp, 0x18
cmp esi, 6
jg 0x10006df8
add ebx, 0x10
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x28]
mov dword [esp], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0x10
test eax, eax
jle 0x10006df8
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, 0x80070057
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
test cx, cx
je 0x10006ecc
xor eax, eax
xor esi, esi
mov dword [ebp - 0x2c], ecx
mov word [ebx + 0x10], ax
lea eax, [ebx + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], edx
mov word [ebx + 4], si
mov dword [ebx], edi
mov dword [esp + 0xc], 6
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], eax
mov eax, dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov dword [esp + 4], 0x59
mov dword [esp], edi
mov dword [ebp - 0x20], eax
call eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
sub esp, 0x10
test eax, eax
mov esi, eax
je 0x10006df8
mov dword [ebp - 0x28], 2
cmp edx, 9
ja 0x10006d3e
jmp 0x10006d2e
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__p__0x_04lx___p__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fnIMultiLanguage_GetRfc1766Info
mov dword [esp + 4], 0x1000c080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10006c9c
xor eax, eax
mov word [ebp + edx*2 - 0x18], ax
jmp 0x10006d89
test byte [0x1000c080], 8
jne 0x10006edf
mov eax, 0x80004005
jmp 0x10006dfd
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.SUBLANGID_missing_in_0x_04lx_n
mov dword [esp + 8], str.fnIMultiLanguage_GetRfc1766Info
mov dword [esp + 4], 0x1000c080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10006ed5