Function at 0x4ad1270d
Capabilities:
Get geographical location

Disassembly:
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x160]
push ecx
push eax
call fcn.4ad0756d
push eax
call edi
mov esi, eax
test esi, esi
je 0x4ad14edf
inc esi
lea eax, [esi + esi]
push eax
push dword [0x4ad240d8]
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
pop ecx
test eax, eax
je 0x4ad14efb
push esi
push eax
mov dword [0x4ad240d8], eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x160]
push eax
push 0
mov dword [0x4ad240dc], esi
call fcn.4ad0756d
push eax
call edi
test eax, eax
jne 0x4ad1284d
jmp 0x4ad14edf
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4ad240ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x148], 1
test esi, esi
je 0x4ad14e48
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.4ad130b6
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp byte [0x4ad24081], 0
je 0x4ad14f01
and dword [ebp - 0x14c], 0
mov esi, 0x80
push esi
lea eax, [ebp - 0x144]
push eax
push 0x1f
call fcn.4ad0756d
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ad14e6e
cmp word [ebp - 0x144], 0
lea esi, [ebp - 0x144]
je 0x4ad1280e
mov ebx, dword [sym.imp.msvcrt.dll_memmove]
movzx edx, word [esi]
cmp dx, 0x27
je 0x4ad14e86
cmp dword [ebp - 0x14c], 0
jne 0x4ad12800
cmp dx, 0x64
je 0x4ad128b4
cmp dx, 0x4d
je 0x4ad128b4
inc esi
inc esi
cmp word [esi], 0
jne 0x4ad127d6
mov ebx, dword [ebp - 0x150]
push dword [0x4ad240dc]
lea eax, [ebp - 0x144]
push dword [0x4ad240d8]
push eax
lea eax, [ebp - 0x160]
push eax
push 0
call fcn.4ad0756d
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push eax
call edi
test eax, eax
je 0x4ad12696
cmp dword [0x4ad240d8], 0
je 0x4ad12696
movzx eax, word [ebp - 0x15c]
push eax
call fcn.4ad12b93
push eax
push 0x20
lea eax, [ebp - 0x44]
push eax
call fcn.4ad0185a
test ebx, ebx
je 0x4ad14fa0
cmp dword [ebp - 0x148], 0
je 0x4ad12881
cmp dword [ebp + 0xc], 1
je 0x4ad14fed
push dword [0x4ad240d8]
push dword [ebp + 0x14]
push ebx
call fcn.4ad0185a
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad12895
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013a9
leave
ret 0x10
xor ecx, ecx
inc ecx
inc esi
inc esi
cmp word [esi], dx
je 0x4ad128b6
lea eax, [ecx + ecx]
sub esi, eax
cmp ecx, 1
jne 0x4ad14e9c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad128d1
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [esi + 2]
push esi
push eax
call ebx
add esp, 0xc
add esi, 4
jmp 0x4ad12802
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
jmp 0x4ad12761
push dword [0x4ad241cc]
lea eax, [ebp - 0x144]
push esi
push eax
call fcn.4ad0185a
jmp 0x4ad127c0
xor eax, eax
cmp dword [ebp - 0x14c], eax
sete al
mov dword [ebp - 0x14c], eax
jmp 0x4ad12800
cmp dx, 0x64
jne 0x4ad14ea9
and dword [ebp - 0x148], 0
cmp ecx, 3
jle 0x4ad14ed8
lea ecx, [eax + esi]
mov eax, ecx
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x4ad14eb6
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
add esi, 6
push esi
call ebx
add esp, 0xc
jmp 0x4ad12802
add esi, eax
jmp 0x4ad12802
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov dword [0x4ad24128], eax
push eax
call fcn.4ad06d44
pop ecx
pop ecx
xor eax, eax
jmp 0x4ad128a3
push 0
push 8
jmp 0x4ad14eed
cmp dword [ebp + 0xc], 0
movzx esi, word [ebp - 0x15e]
movzx edi, word [ebp - 0x15a]
movzx ebx, word [ebp - 0x160]
jne 0x4ad14f27
push 0x64
mov eax, ebx
xor edx, edx
pop ecx
div ecx
mov ebx, edx
mov eax, dword [0x4ad241d0]
cmp eax, 2
jne 0x4ad14f3b
mov eax, ebx
mov ebx, edi
mov edi, esi
mov esi, eax
jmp 0x4ad14f46
cmp eax, 1
jne 0x4ad14f46
mov eax, esi
mov esi, edi
mov edi, eax
cmp dword [0x4ad240dc], 0x20
jge 0x4ad14f72
push 0x40
push dword [0x4ad240d8]
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
pop ecx
test eax, eax
je 0x4ad14efb
mov dword [0x4ad240d8], eax
mov dword [0x4ad240dc], 0x20
push ebx
mov eax, 0x4ad24940
push eax
push edi
push eax
push esi
push str._02d_s_02d_s_02d
push dword [0x4ad240dc]
push dword [0x4ad240d8]
call fcn.4ad0179d
mov ebx, dword [ebp - 0x150]
add esp, 0x20
jmp 0x4ad1284d
cmp dword [ebp - 0x148], ebx
jne 0x4ad14fbf
push dword [0x4ad240d8]
push 0x4ad245b0
call fcn.4ad058f3
pop ecx
pop ecx
jmp 0x4ad128a3
call fcn.4ad0661c
test al, al
lea eax, [ebp - 0x44]
je 0x4ad14fd4
push eax
push dword [0x4ad240d8]
jmp 0x4ad14fdb
push dword [0x4ad240d8]
push eax
push str._s__s
call fcn.4ad058f3
add esp, 0xc
jmp 0x4ad128a3
call fcn.4ad0661c
test al, al
je 0x4ad15019
push dword [0x4ad240d8]
push dword [ebp + 0x14]
push ebx
call fcn.4ad0185a
push 0x4ad025b8
push dword [ebp + 0x14]
push ebx
call fcn.4ad020a9
lea eax, [ebp - 0x44]
push eax
jmp 0x4ad1503a
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x14]
push ebx
call fcn.4ad0185a
push 0x4ad025b8
push dword [ebp + 0x14]
push ebx
call fcn.4ad020a9
push dword [0x4ad240d8]
push dword [ebp + 0x14]
push ebx
call fcn.4ad020a9
jmp 0x4ad12890