Function at 0x4ad0e537
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4ad33b78]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x148], 1
jne 0x4ad12a28
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp byte [0x4ad2fa64], 0
je 0x4ad12ac4
push 0x80
lea eax, [ebp - 0x144]
push eax
push 0x1f
mov dword [ebp - 0x14c], ebx
call fcn.4ad056f5
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ad12a4b
cmp word [ebp - 0x144], bx
lea esi, [ebp - 0x144]
je 0x4ad0e634
mov ebx, dword [sym.imp.msvcrt.dll_memmove]
mov dx, word [esi]
cmp dx, 0x27
je 0x4ad12a65
cmp dword [ebp - 0x14c], 0
jne 0x4ad0e62a
cmp dx, 0x64
je 0x4ad0e73c
cmp dx, 0x4d
je 0x4ad0e73c
inc esi
inc esi
cmp word [esi], 0
jne 0x4ad0e600
xor ebx, ebx
push dword [0x4ad3ccb4]
lea eax, [ebp - 0x144]
push dword [0x4ad3ccb0]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
call fcn.4ad056f5
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push eax
call edi
test eax, eax
je 0x4ad0e669
cmp dword [0x4ad3ccb0], ebx
jne 0x4ad0e6d3
push ebx
push ebx
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
call fcn.4ad056f5
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x4ad12ab2
inc esi
lea eax, [esi + esi]
push eax
push dword [0x4ad3ccb0]
call dword [sym.imp.msvcrt.dll_realloc]
cmp eax, ebx
pop ecx
pop ecx
je 0x4ad12ac1
push esi
push eax
mov dword [0x4ad3ccb0], eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
mov dword [0x4ad3ccb4], esi
call fcn.4ad056f5
push eax
call edi
test eax, eax
je 0x4ad12ab2
movzx eax, word [ebp - 0x158]
push eax
call fcn.4ad0e476
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
push eax
lea eax, [ebp - 0x44]
push eax
call esi
mov edi, dword [ebp - 0x160]
cmp edi, ebx
pop ecx
pop ecx
jne 0x4ad12b8b
cmp dword [ebp - 0x148], ebx
je 0x4ad12b6c
call fcn.4ad08b08
test al, al
lea eax, [ebp - 0x44]
jne 0x4ad12b7f
push dword [0x4ad3ccb0]
push eax
push str._s__s
call fcn.4ad05e0c
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 0x10
xor ecx, ecx
inc ecx
inc esi
inc esi
cmp word [esi], dx
je 0x4ad0e73e
lea eax, [ecx + ecx]
sub esi, eax
cmp ecx, 1
jne 0x4ad12a7b
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 ebx
add esp, 0x10
add esi, 4
jmp 0x4ad0e62c
push 9
pop ecx
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x194]
lea edi, [ebp - 0x194]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.4ad19bf3
jmp 0x4ad0e58e
push dword [0x4ad34b30]
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x4ad0e5eb
xor eax, eax
cmp dword [ebp - 0x14c], eax
sete al
mov dword [ebp - 0x14c], eax
jmp 0x4ad0e62a
cmp dx, 0x64
jne 0x4ad12a88
and dword [ebp - 0x148], 0
cmp ecx, 3
jle 0x4ad12aab
lea edi, [eax + esi]
push edi
add esi, 6
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
push edi
push esi
call ebx
add esp, 0x10
jmp 0x4ad0e62c
add esi, eax
jmp 0x4ad0e62c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [0x4ad2ba04], eax
push eax
jmp 0x4ad12b29
push ebx
jmp 0x4ad12b27
cmp dword [ebp + 0xc], 0
movzx esi, word [ebp - 0x15a]
movzx edi, word [ebp - 0x156]
movzx ebx, word [ebp - 0x15c]
jne 0x4ad12aea
push 0x64
mov eax, ebx
xor edx, edx
pop ecx
div ecx
mov ebx, edx
mov eax, dword [0x4ad2ba00]
cmp eax, 2
jne 0x4ad12afe
mov eax, ebx
mov ebx, edi
mov edi, esi
mov esi, eax
jmp 0x4ad12b09
cmp eax, 1
jne 0x4ad12b09
mov eax, esi
mov esi, edi
mov edi, eax
cmp dword [0x4ad3ccb4], 0x20
jge 0x4ad12b45
push 0x40
push dword [0x4ad3ccb0]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
jne 0x4ad12b36
push eax
push 8
call fcn.4ad0606f
pop ecx
xor eax, eax
jmp 0x4ad12bf4
mov dword [0x4ad3ccb0], eax
mov dword [0x4ad3ccb4], 0x20
push ebx
mov eax, 0x4ad34b50
push eax
push edi
push eax
push esi
push str._02d_s_02d_s_02d
push 0x20
push dword [0x4ad3ccb0]
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x20
xor ebx, ebx
jmp 0x4ad0e6d3
push dword [0x4ad3ccb0]
push 0x4ad3cbb0
call fcn.4ad05e0c
pop ecx
jmp 0x4ad12bf4
push eax
push dword [0x4ad3ccb0]
jmp 0x4ad0e720
cmp dword [ebp - 0x148], ebx
je 0x4ad12be2
cmp dword [ebp + 0xc], 1
jne 0x4ad12be2
call fcn.4ad08b08
test al, al
je 0x4ad12bc5
push dword [0x4ad3ccb0]
push edi
call esi
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
push 0x4ad05d98
push edi
call esi
lea eax, [ebp - 0x44]
push eax
push edi
call esi
add esp, 0x18
jmp 0x4ad12bed
lea eax, [ebp - 0x44]
push eax
push edi
call esi
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
push 0x4ad05d98
push edi
call esi
push dword [0x4ad3ccb0]
jmp 0x4ad12bbd
push dword [0x4ad3ccb0]
push edi
call esi
pop ecx
pop ecx
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
jmp 0x4ad0e72d