Function at 0x100850b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x100c701c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100e0598]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x508], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x100850fe
push str._create_locale
call fcn.10086f30
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x508]
test eax, eax
jne 0x100850f9
or eax, 0xffffffff
mov dword [0x100e0598], eax
lea esi, [eax + 1]
neg esi
sbb esi, esi
and esi, eax
je 0x1008521e
test edi, edi
je 0x1008513f
push 0x2d
push edi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x1008513f
xor ecx, ecx
mov al, byte [edi + ecx]
lea edx, [ecx + ecx]
test al, al
je 0x1008515c
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x10085122
push edi
push dword [ebp - 0x508]
call esi
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007b0c7
mov esp, ebp
pop ebp
ret
cmp edx, 0x200
jae 0x10085301
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x1008513f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call ebx
test eax, eax
je 0x1008513f
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call ebx
test eax, eax
je 0x1008513f
lea ebx, [ebp - 0x504]
xor eax, eax
jmp 0x100851f0
movzx ecx, word [ebx + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x1008520f
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x100851f0
jmp 0x1008513f
mov byte [edx + eax], 0
lea edi, [ebp - 0x304]
jmp 0x1008513f
cmp ecx, 5
ja 0x100852e1
test edi, edi
je 0x100852e1
call fcn.10085470
mov ebx, eax
test ebx, ebx
je 0x100852ec
call sub.msvcrt.dll__errno
lea esi, [eax - 8]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1008525f
test eax, eax
je 0x1008525f
push 0x10
xor esi, esi
call dword [sym.imp.msvcrt.dll__amsg_exit]
add esp, 4
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x50c], eax
or eax, 2
push edi
push dword [ebp - 0x508]
mov dword [esi + 0x70], eax
call fcn.100855a0
add esp, 8
test eax, eax
je 0x1008529c
mov eax, dword [esi + 0x6c]
push dword [eax + 4]
call sub.msvcrt.dll__setmbcp
add esp, 4
test eax, eax
jne 0x1008529c
call fcn.10085470
mov edi, eax
jmp 0x1008529e
xor edi, edi
mov eax, dword [ebp - 0x50c]
mov ecx, dword [esi + 0x6c]
mov dword [esi + 0x70], eax
mov eax, dword [ebx]
cmp eax, ecx
je 0x100852b5
mov dword [ebx], ecx
mov dword [esi + 0x6c], eax
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x68]
cmp eax, ecx
je 0x100852c5
mov dword [ebx + 4], ecx
mov dword [esi + 0x68], eax
push ebx
call fcn.10085310
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007b0c7
mov esp, ebp
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov ecx, dword [ebp - 4]
xor edi, edi
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1007b0c7
mov esp, ebp
pop ebp
ret
call fcn.1007b1f7
int3