Function at 0x4c2bd0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x160
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x16c]
push ebx
mov ebx, dword [esp + 0x168]
push ebp
mov ebp, dword [esp + 0x170]
mov dword [esp + 0x14], eax
test ebp, ebp
jne 0x4c2c07
lea ebp, [esp + 0x10]
mov dword [ebp], 0
test eax, eax
je 0x4c2c15
mov byte [eax], 0
xor eax, eax
cmp word [ebx], ax
jne 0x4c2c23
xor edx, edx
jmp 0x4c2ebf
push esi
push edi
push 0x64
mov word [esp + 0xa8], ax
lea eax, [esp + 0xa8]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
xor ecx, ecx
mov word [esp + 0x40], ax
xor edx, edx
movzx eax, word [ebx]
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
test ax, ax
je 0x4c2eab
movzx eax, ax
push eax
call fcn.0048e2c0
test al, al
je 0x4c2cc4
mov eax, esi
mov ecx, edi
shld ecx, eax, 2
shl eax, 2
add esi, eax
movzx eax, word [ebx]
cdq
adc edi, ecx
mov ecx, dword [esp + 0x10]
shld edi, esi, 1
mov dword [esp + 0x10], ecx
add esi, esi
add esi, eax
adc edi, edx
mov edx, dword [esp + 0x14]
sub esi, 0x30
mov eax, edx
sbb edi, 0
shld ecx, eax, 2
shl eax, 2
add edx, eax
mov eax, dword [esp + 0x10]
adc eax, ecx
shld eax, edx, 1
add edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jmp 0x4c2cf4
movzx eax, word [ebx]
cmp ax, word [esp + 0xa4]
jne 0x4c2ce3
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
jmp 0x4c2cf4
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x4c2d06
cmp word [ebx], 0x28
je 0x4c2d06
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x4c2c67
jmp 0x4c2d2b
push 0x32
push ebx
lea eax, [esp + 0x48]
push eax
call fcn.0048e710
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.004ecec5
add esp, 8
test eax, eax
je 0x4c2d2b
xor ecx, ecx
mov word [eax], cx
mov eax, esi
or eax, edi
je 0x4c2eab
cmp word [esp + 0x40], 0
je case.0x4c2e18.67
mov dword [esp + 0x20], 0x5e6
xor ebx, ebx
mov dword [esp + 0x24], 0x5e7
mov dword [esp + 0x28], 0x5e8
mov dword [esp + 0x2c], 0x5e9
mov dword [esp + 0x30], str.bkmg
mov dword [esp + 0x34], 0x512cc4
mov dword [esp + 0x38], 0x512cc8
mov dword [esp + 0x3c], 0x512ccc
push dword [esp + ebx*4 + 0x20]
call fcn.00488530
mov edx, eax
lea ecx, [eax + 2]
mov dword [esp + 0x18], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2d95
sub eax, dword [esp + 0x18]
sar eax, 1
push eax
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004f2e5f
add esp, 0xc
test eax, eax
je 0x4c2dc1
inc ebx
cmp ebx, 4
jb 0x4c2d83
jmp 0x4c2de0
mov ecx, dword [esp + ebx*4 + 0x30]
lea edx, [esp + 0x40]
sub edx, ecx
jmp 0x4c2dd0
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4c2dd0
movzx eax, word [esp + 0x42]
push eax
call fcn.00491a30
cmp eax, 0x42
jne 0x4c2dfd
movzx eax, word [esp + 0x40]
push eax
call sub.USER32.dll_CharLowerW
jmp 0x4c2e02
mov ax, word [esp + 0x40]
movzx eax, ax
add eax, 0xffffffbe
cmp eax, 0x2b
ja case.0x4c2e18.67
movzx eax, byte [eax + 0x4c2ef8]
jmp dword [eax*4 + 0x4c2ed8]
mov eax, dword [esp + 0x1c]
mov dword [ebp], 0
test eax, eax
je case.0x4c2e18.67
mov byte [eax], 1
jmp case.0x4c2e18.67
shld edi, esi, 0xa
mov dword [ebp], 1
shl esi, 0xa
jmp case.0x4c2e18.67
push 0
push 0x3e8
jmp 0x4c2e7c
shld edi, esi, 0x14
mov dword [ebp], 2
shl esi, 0x14
jmp case.0x4c2e18.67
push 0
push 0xf4240
jmp 0x4c2e7c
shld edi, esi, 0x1e
mov dword [ebp], 3
shl esi, 0x1e
jmp case.0x4c2e18.67
push 0
push 0x3b9aca00
push edi
push esi
mov dword [ebp], 0xffffffff
call fcn.004ebe00
mov esi, eax
mov edi, edx
mov ecx, dword [esp + 0x14]
mov eax, ecx
mov edx, dword [esp + 0x10]
or eax, edx
je 0x4c2eb9
push edx
push ecx
push edi
push esi
call fcn.004ebd50
mov esi, eax
mov edi, edx
jmp 0x4c2eb9
mov esi, SysReAllocString
mov dword [ebp], 0xffffffff
mov edi, esi
mov edx, edi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x164]
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebbd8
add esp, 0x160
ret 0xc