Function at 0x4a822270
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x4a8fdee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x14]
push 0x9d
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa4]
push eax
push 0x5c
push ebx
mov byte [ebp - 0xa5], 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
cmp esi, 1
jle 0x4a8223d5
lea eax, [ebp - 0xa4]
push 0x5f
push eax
call dword [0x4a89c0a8]
add esp, 8
test eax, eax
je 0x4a8222f1
lea esi, [ebp - 0xa4]
mov byte [eax], 0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a8222e6
sub esi, ecx
jmp 0x4a8222f8
mov byte [ebp - 0xa5], 0
mov cl, byte [ebp - 0xa4]
lea eax, [ebp - 0xa4]
test cl, cl
je 0x4a82231c
cmp byte [eax], 0x2d
jne 0x4a822310
mov byte [eax], 0x5f
inc eax
cmp byte [eax], 0
jne 0x4a822308
mov cl, byte [ebp - 0xa4]
cmp esi, 3
jl 0x4a8223c6
cmp cl, 0x71
jne 0x4a82236d
cmp byte [ebp - 0xa3], 0x75
jne 0x4a8223c6
cmp byte [ebp - 0xa2], 0x7a
jne 0x4a8223c6
lea edx, [ebp - 0xa1]
mov byte [ebp - 0xa2], 0
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4a822353
lea edi, [ebp - 0xa4]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4a822363
jmp 0x4a8223b8
cmp cl, 0x70
jne 0x4a8223c6
cmp byte [ebp - 0xa3], 0x72
jne 0x4a8223c6
cmp byte [ebp - 0xa2], 0x73
jne 0x4a8223c6
lea edx, [ebp - 0xa1]
mov word [ebp - 0xa4], 0x6166
mov byte [ebp - 0xa2], 0
mov esi, edx
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a8223a0
lea edi, [ebp - 0xa4]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4a8223b0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0xa5], 0
lea edi, [ebp - 0xa4]
je 0x4a822453
mov edx, ebx
and edx, 0x3ff
xor ecx, ecx
nop
mov eax, dword [ecx*8 + 0x4a8a33e4]
cmp edx, dword [eax]
je 0x4a8223f6
inc ecx
cmp ecx, 0x8c
jb 0x4a8223e0
jmp 0x4a82244f
mov esi, dword [ecx*8 + 0x4a8a33e4]
mov edx, dword [ecx*8 + 0x4a8a33e0]
xor eax, eax
mov ecx, esi
cmp dword [ecx], ebx
je 0x4a822419
inc eax
add ecx, 8
cmp eax, edx
jbe 0x4a822408
mov esi, dword [esi + 4]
jmp 0x4a82241d
mov esi, dword [esi + eax*8 + 4]
test esi, esi
je 0x4a82244f
test edi, edi
je 0x4a82244d
mov ecx, esi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a822430
sub ecx, edx
mov edx, edi
lea ebx, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x4a822440
sub edx, ebx
cmp ecx, edx
jbe 0x4a82244f
mov edi, esi
test edi, edi
je 0x4a8224d2
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a822458
mov ebx, dword [ebp + 0x10]
sub esi, ecx
mov eax, ebx
cmp esi, ebx
cmovle eax, esi
push eax
push edi
mov edi, dword [ebp - 0xb0]
push edi
call fcn.4a897a10
add esp, 0xc
cmp esi, ebx
jge 0x4a8224a8
mov eax, dword [ebp - 0xac]
mov byte [edi + esi], 0
cmp dword [eax], 0xffffff84
jne 0x4a8224bf
pop edi
mov dword [eax], 0
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.4a897a01
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff84
mov ecx, 0xf
cmp esi, ebx
cmove ecx, eax
mov eax, dword [ebp - 0xac]
mov dword [eax], ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.4a897a01
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], 1
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.4a897a01
mov esp, ebp
pop ebp
ret