Function at 0x4ad06358
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x4ad33b38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x15c], edi
jne 0x4ad13237
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp dword [ebp + 0xc], 1
jne 0x4ad0d532
movzx eax, word [ebp - 0x14a]
push 0xa
pop ecx
cdq
idiv ecx
test edi, edi
movzx ecx, word [ebp - 0x14e]
push eax
movzx eax, word [ebp - 0x14c]
push 0x4ad38840
push eax
mov eax, 0x4ad38850
push eax
push ecx
push eax
movzx eax, word [ebp - 0x150]
push eax
push str._2d_s_02d_s_02d_s_02d
je 0x4ad13249
push dword [ebp + 0x14]
push edi
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x28
mov ecx, dword [ebp - 4]
pop edi
call fcn.4ad01389
leave
ret 0x10
cmp byte [0x4ad2fa24], 0
push esi
je 0x4ad1328e
and dword [ebp - 0x148], 0
push 0x80
lea eax, [ebp - 0x144]
push eax
push 0x1003
call fcn.4ad03cdd
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ad13256
cmp word [ebp - 0x144], 0
push ebx
push 2
lea esi, [ebp - 0x144]
pop ebx
je 0x4ad0d5ba
mov di, word [esi]
cmp di, 0x27
je 0x4ad1326f
cmp dword [ebp - 0x148], 0
jne 0x4ad0d62e
cmp di, 0x68
je 0x4ad0d5fb
cmp di, 0x48
je 0x4ad0d5fb
cmp di, 0x6d
je 0x4ad0d5fb
add esi, ebx
cmp word [esi], 0
jne 0x4ad0d580
mov edi, dword [ebp - 0x15c]
push 0x20
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x158]
push eax
push ebx
call fcn.4ad03cdd
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
pop ebx
je 0x4ad13285
test edi, edi
lea eax, [ebp - 0x44]
jne 0x4ad132ea
push eax
call fcn.4ad0bb01
pop esi
jmp 0x4ad0641f
xor eax, eax
add esi, ebx
inc eax
cmp word [esi], di
je 0x4ad0d5fd
mov ecx, eax
neg ecx
cmp eax, 1
lea esi, [esi + ecx*2]
jne 0x4ad0d62e
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
lea eax, [esi + 2]
push esi
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0x10
mov word [esi], di
add esi, ebx
jmp 0x4ad0d5ac
lea ecx, [ebp - 0x164]
push ecx
push eax
call fcn.4ad1a5ef
jmp 0x4ad063a1
call fcn.4ad04115
add esp, 0x20
jmp 0x4ad0641f
lea eax, [ebp - 0x144]
push 0x4ad1330c
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x4ad0d56c
xor eax, eax
cmp dword [ebp - 0x148], eax
sete al
mov dword [ebp - 0x148], eax
jmp 0x4ad0d62e
and word [ebp - 0x44], ax
jmp 0x4ad0d5e4
cmp dword [0x4ad2f9fc], 0
movzx eax, word [ebp - 0x150]
mov edx, 0x4ad38900
je 0x4ad132bd
push 0xc
pop ecx
cmp eax, ecx
jb 0x4ad132b5
jbe 0x4ad132ae
sub eax, ecx
mov edx, 0x4ad388c0
jmp 0x4ad132c2
test eax, eax
jne 0x4ad132c2
mov eax, ecx
jmp 0x4ad132c2
mov edx, 0x4ad040a8
movzx ecx, word [ebp - 0x14e]
push edx
push ecx
push 0x4ad38850
push eax
push str._02d_s_02d_s
lea eax, [ebp - 0x44]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x1c
jmp 0x4ad0d5e4
mov esi, dword [ebp + 0x14]
push esi
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcsncpy]
and word [edi + esi*2], 0
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x10
jmp 0x4ad0d5f5