Function at 0x4ad0cf54
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4ad33b38]
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 0x4ad130aa
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 [0x4ad2fa24], 0
je 0x4ad13146
push 0x80
lea eax, [ebp - 0x144]
push eax
push 0x1f
mov dword [ebp - 0x14c], ebx
call fcn.4ad03cdd
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ad130cd
cmp word [ebp - 0x144], bx
lea esi, [ebp - 0x144]
je 0x4ad0d051
mov ebx, dword [sym.imp.msvcrt.dll_memmove]
mov dx, word [esi]
cmp dx, 0x27
je 0x4ad130e7
cmp dword [ebp - 0x14c], 0
jne 0x4ad0d047
cmp dx, 0x64
je 0x4ad0d159
cmp dx, 0x4d
je 0x4ad0d159
inc esi
inc esi
cmp word [esi], 0
jne 0x4ad0d01d
xor ebx, ebx
push dword [0x4ad3cc44]
lea eax, [ebp - 0x144]
push dword [0x4ad3cc40]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
call fcn.4ad03cdd
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push eax
call edi
test eax, eax
je 0x4ad0d086
cmp dword [0x4ad3cc40], ebx
jne 0x4ad0d0f0
push ebx
push ebx
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
call fcn.4ad03cdd
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x4ad13134
inc esi
lea eax, [esi + esi]
push eax
push dword [0x4ad3cc40]
call dword [sym.imp.msvcrt.dll_realloc]
cmp eax, ebx
pop ecx
pop ecx
je 0x4ad13143
push esi
push eax
mov dword [0x4ad3cc40], eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
mov dword [0x4ad3cc44], esi
call fcn.4ad03cdd
push eax
call edi
test eax, eax
je 0x4ad13134
movzx eax, word [ebp - 0x158]
push eax
call fcn.4ad0cf03
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 0x4ad0e7ab
cmp dword [ebp - 0x148], ebx
je 0x4ad131ee
call fcn.4ad06197
test al, al
lea eax, [ebp - 0x44]
jne 0x4ad13204
push dword [0x4ad3cc40]
push eax
push str._s__s
call fcn.4ad04115
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01389
leave
ret 0x10
xor ecx, ecx
inc ecx
inc esi
inc esi
cmp word [esi], dx
je 0x4ad0d15b
lea eax, [ecx + ecx]
sub esi, eax
cmp ecx, 1
jne 0x4ad130fd
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 0x4ad0d049
cmp dword [ebp - 0x148], ebx
je 0x4ad0e7f4
cmp dword [ebp + 0xc], 1
jne 0x4ad0e7f4
call fcn.4ad06197
test al, al
jne 0x4ad13210
lea eax, [ebp - 0x44]
push eax
push edi
call esi
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
push 0x4ad040a8
push edi
call esi
push dword [0x4ad3cc40]
push edi
call esi
add esp, 0x18
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
jmp 0x4ad0d14a
push dword [0x4ad3cc40]
push edi
call esi
jmp 0x4ad13230
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.4ad1a5ef
jmp 0x4ad0cfab
push dword [0x4ad38ad0]
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x4ad0d008
xor eax, eax
cmp dword [ebp - 0x14c], eax
sete al
mov dword [ebp - 0x14c], eax
jmp 0x4ad0d047
cmp dx, 0x64
jne 0x4ad1310a
and dword [ebp - 0x148], 0
cmp ecx, 3
jle 0x4ad1312d
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 0x4ad0d049
add esi, eax
jmp 0x4ad0d049
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [0x4ad2b9c4], eax
push eax
jmp 0x4ad131ab
push ebx
jmp 0x4ad131a9
cmp dword [ebp + 0xc], 0
movzx esi, word [ebp - 0x15a]
movzx edi, word [ebp - 0x156]
movzx ebx, word [ebp - 0x15c]
jne 0x4ad1316c
push 0x64
mov eax, ebx
xor edx, edx
pop ecx
div ecx
mov ebx, edx
mov eax, dword [0x4ad2b9c0]
cmp eax, 2
jne 0x4ad13180
mov eax, ebx
mov ebx, edi
mov edi, esi
mov esi, eax
jmp 0x4ad1318b
cmp eax, 1
jne 0x4ad1318b
mov eax, esi
mov esi, edi
mov edi, eax
cmp dword [0x4ad3cc44], 0x20
jge 0x4ad131c7
push 0x40
push dword [0x4ad3cc40]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
jne 0x4ad131b8
push eax
push 8
call fcn.4ad050c9
pop ecx
xor eax, eax
jmp 0x4ad0e7ee
mov dword [0x4ad3cc40], eax
mov dword [0x4ad3cc44], 0x20
push ebx
mov eax, 0x4ad38ae0
push eax
push edi
push eax
push esi
push str._02d_s_02d_s_02d
push 0x20
push dword [0x4ad3cc40]
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x20
xor ebx, ebx
jmp 0x4ad0d0f0
push dword [0x4ad3cc40]
push 0x4ad3cba0
call fcn.4ad04115
pop ecx
jmp 0x4ad0e7ee
push eax
push dword [0x4ad3cc40]
jmp 0x4ad0d13d
push dword [0x4ad3cc40]
push edi
call esi
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
push 0x4ad040a8
push edi
call esi
lea eax, [ebp - 0x44]
push eax
jmp 0x4ad0e7e1
pop ecx
pop ecx
jmp 0x4ad0e7e7