Function at 0x4d4ccc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x214], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d51f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x70], 0x20
mov eax, 0x40
call fcn.004066cc
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4d5055
mov edi, esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x68], 1
test ebx, ebx
jne 0x4d4d41
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_GetSystemTime
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
jmp 0x4d4d60
push edi
mov esi, ebx
lea edi, [ebp - 0x94]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
pop edi
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x94]
call fcn.004d5ca4
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
mov eax, dword [0x4f0f78]
cmp byte [eax], 0
jne 0x4d4e70
movzx eax, word [ebp - 0xa2]
mov dword [ebp - 0x34], eax
movzx eax, word [ebp - 0x9e]
mov dword [ebp - 0x38], eax
movzx eax, word [ebp - 0xa4]
cmp dword [ebp - 4], 0
jne 0x4d4dbe
movzx eax, word [ebp - 0xa4]
mov ecx, 0x64
xor edx, edx
div ecx
mov eax, edx
cmp dword [0x4fcf70], 2
jne 0x4d4de3
mov dword [ebp - 0x3c], eax
movzx eax, word [ebp - 0x9e]
movzx edx, word [ebp - 0xa2]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], edx
jmp 0x4d4e00
cmp dword [0x4fcf70], 1
jne 0x4d4e00
movzx edx, word [ebp - 0x9e]
mov dword [ebp - 0x34], edx
movzx edx, word [ebp - 0xa2]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x210], edx
mov byte [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0x4fcf50
mov byte [ebp - 0x204], 0xa
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x200], edx
mov byte [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 0x4fcf50
mov byte [ebp - 0x1f4], 0xa
mov dword [ebp - 0x1f0], eax
mov byte [ebp - 0x1ec], 0
lea eax, [ebp - 0x210]
push eax
push 4
mov ecx, 0x4d5208
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
call fcn.004d4168
mov edi, dword [ebp - 0x60]
jmp 0x4d50d6
xor eax, eax
mov dword [ebp - 0x64], eax
call sub.kernel32.dll_GetUserDefaultLCID
mov ebx, eax
push 0x80
lea eax, [ebp - 0x1a6]
push eax
push 0x1f
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jne 0x4d4ea9
mov edx, 0x4fd088
lea eax, [ebp - 0x1a6]
mov ecx, 0x80
call fcn.004d4024
lea ebx, [ebp - 0x1a6]
lea eax, [ebp - 0x1a6]
test eax, eax
je 0x4d4fe0
movzx esi, word [ebx]
cmp word [ebx], 0x27
jne 0x4d4ed9
cmp dword [ebp - 0x64], 0
sete al
neg al
sbb eax, eax
mov dword [ebp - 0x64], eax
jmp 0x4d4fd0
cmp dword [ebp - 0x64], 0
jne 0x4d4fd0
cmp si, 0x64
je 0x4d4ef3
cmp si, 0x4d
jne 0x4d4fd0
xor eax, eax
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x10]
add ebx, 2
cmp si, word [ebx]
je 0x4d4ef8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, eax
sub ebx, eax
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], 1
jne 0x4d4f5b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov word [ebp - 0x1e], ax
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x1e], 0
jne 0x4d4f1f
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
sar eax, 1
jns 0x4d4f41
adc eax, 0
mov ecx, eax
add ecx, ecx
mov edx, dword [ebp - 0x18]
add edx, 2
mov eax, dword [ebp - 0x18]
call fcn.00406870
mov ebx, dword [ebp - 0x18]
add ebx, 4
jmp 0x4d4fd3
cmp si, 0x64
jne 0x4d4f66
xor eax, eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x10], 3
jg 0x4d4f76
mov ebx, dword [ebp - 0x14]
add ebx, ebx
add ebx, dword [ebp - 0x18]
jmp 0x4d4fd3
mov eax, dword [ebp - 0x14]
add eax, eax
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
add eax, eax
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, 2
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
movzx eax, word [eax]
mov word [ebp - 0x2e], ax
add dword [ebp - 0x28], 2
cmp word [ebp - 0x2e], 0
jne 0x4d4f95
mov ebx, dword [ebp - 0x18]
add ebx, 6
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
sar eax, 1
jns 0x4d4fbd
adc eax, 0
add eax, 2
mov ecx, eax
add ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00406870
jmp 0x4d4fd3
add ebx, 2
cmp word [ebx], 0
jne 0x4d4ebd
mov edi, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x6c]
call sub.kernel32.dll_GetUserDefaultLCID
mov dword [ebp - 0xc], eax
push ebx
push esi
lea eax, [ebp - 0x1a6]
push eax
lea eax, [ebp - 0xa4]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetDateFormatW
test eax, eax
je 0x4d5017
cmp dword [ebp - 0x6c], 0
jne 0x4d50d6
call sub.kernel32.dll_GetUserDefaultLCID
push 0
push 0
lea edx, [ebp - 0x1a6]
push edx
lea edx, [ebp - 0xa4]
push edx
push 0
push eax
call sub.kernel32.dll_GetDateFormatW
test eax, eax
je 0x4d508b
lea edx, [eax + 1]
mov ebx, edx
lea ecx, [ebp - 0x6c]
mov eax, edx
add eax, eax
mov edx, eax
mov eax, ecx
call fcn.00406700
cmp dword [ebp - 0x6c], 0
je 0x4d5061
xor eax, eax
mov dword [ebp - 0x44], eax
mov ebx, 8
jmp 0x4d50a5
mov esi, dword [ebp - 0x6c]
call sub.kernel32.dll_GetUserDefaultLCID
mov dword [ebp - 8], eax
push ebx
push esi
lea eax, [ebp - 0x1a6]
push eax
lea eax, [ebp - 0xa4]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetDateFormatW
test eax, eax
jne 0x4d50d6
xor eax, eax
mov dword [ebp - 0x44], eax
call sub.kernel32.dll_GetLastError_2
mov edx, dword [0x4f1264]
mov dword [edx], eax
mov ebx, dword [0x4f1264]
mov ebx, dword [ebx]
push 0xffffffffffffffff
lea edx, [ebp - 0x214]
mov eax, ebx
call fcn.00422318
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x214]
xor edx, edx
call fcn.004e6fc4
mov eax, dword [ebp - 0x6c]
call fcn.004066e8
xor ebx, ebx
jmp 0x4d51db
movzx eax, word [ebp - 0xa0]
call fcn.004e7810
lea edx, [ebp - 0x1e8]
mov ecx, 0x20
xchg edx, eax
call fcn.004d4024
test edi, edi
je 0x4d5161
cmp dword [ebp - 0x68], 0
je 0x4d5137
cmp dword [ebp - 4], 1
jne 0x4d5137
lea edx, [ebp - 0x1e8]
mov ecx, dword [ebp + 8]
mov eax, edi
call fcn.004d4024
mov ecx, 0x4d522c
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.004d4ca0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.004d4ca0
jmp 0x4d5144
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x6c]
mov eax, edi
call fcn.004d4024
mov eax, edi
movzx edx, word [eax]
add eax, 2
test dx, dx
jne 0x4d5146
add edi, 2
mov ebx, eax
sub ebx, edi
sar ebx, 1
jns 0x4d51d3
adc ebx, 0
jmp 0x4d51d3
cmp dword [ebp - 0x68], 0
je 0x4d51af
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x1e8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x224], eax
mov byte [ebp - 0x220], 0xa
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x21c], eax
mov byte [ebp - 0x218], 0xa
lea edx, [ebp - 0x224]
mov eax, 0x4d5230
mov ecx, 1
call fcn.004d8538
mov ebx, eax
jmp 0x4d51d3
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x22c], eax
mov byte [ebp - 0x228], 0xa
lea edx, [ebp - 0x22c]
mov eax, 0x4d5240
xor ecx, ecx
call fcn.004d8538
mov ebx, eax
mov eax, dword [ebp - 0x6c]
call fcn.004066e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d51fb
lea eax, [ebp - 0x214]
call fcn.00409e68
ret