Function at 0x4067a1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x164], 1
push edi
test esi, esi
jne 0x41a344
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTime]
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
xor eax, eax
mov dword [ebp - 0x15c], eax
cmp byte [0x435745], al
je 0x41a41b
mov dword [ebp - 0x160], eax
mov esi, 0x80
push esi
lea eax, [ebp - 0x148]
push eax
push 0x1f
call fcn.004086e1
push eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41a365
mov ax, word [ebp - 0x148]
lea esi, [ebp - 0x148]
push 2
pop edi
test ax, ax
je 0x4068b9
mov ebx, dword [ebp - 0x160]
push 0x64
movzx ecx, ax
pop eax
cmp cx, 0x27
je 0x41a37d
test ebx, ebx
jne 0x4068a4
cmp cx, ax
je 0x40698d
cmp cx, 0x4d
je 0x40698d
add esi, edi
movzx eax, word [esi]
push 0x64
mov ecx, eax
test ax, ax
pop eax
jne 0x406883
mov ebx, dword [ebp - 0x16c]
push dword [0x435740]
lea eax, [ebp - 0x148]
push dword [0x43573c]
push eax
lea eax, [ebp - 0x158]
push eax
xor eax, eax
push eax
call fcn.004086e1
push eax
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetDateFormatW]
test eax, eax
je 0x4069e3
mov esi, dword [0x43573c]
test esi, esi
je 0x4069e3
movzx ecx, word [ebp - 0x154]
call fcn.00405db8
push eax
push 0x20
pop edx
lea ecx, [ebp - 0x48]
call fcn.0040f2e0
test ebx, ebx
je 0x41a4d3
cmp dword [ebp - 0x164], 0
je 0x41a52f
cmp dword [ebp - 0x168], 1
jne 0x41a52f
call fcn.00409381
mov edx, dword [ebp + 0xc]
mov ecx, ebx
test al, al
jne 0x41a511
lea eax, [ebp - 0x48]
push eax
call fcn.0040f2e0
mov edx, dword [ebp + 0xc]
mov ecx, ebx
push 0x40233c
call fcn.0040fb80
push esi
mov edx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040fb80
lea ecx, [ebx + 2]
xor edx, edx
mov ax, word [ebx]
add ebx, edi
cmp ax, dx
jne 0x40696c
sub ebx, ecx
sar ebx, 1
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ad0
leave
ret 8
xor eax, eax
mov edx, eax
add esi, edi
inc edx
cmp word [esi], cx
je 0x406991
mov eax, edx
mov dword [ebp - 0x160], esi
neg eax
lea esi, [esi + eax*2]
cmp edx, 1
jne 0x41a38d
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, word [ebp - 0x15c]
jne 0x4069b4
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 2]
push esi
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
add esi, 4
jmp 0x4068a6
xor ecx, ecx
lea eax, [ebp - 0x148]
push ecx
push ecx
push eax
lea eax, [ebp - 0x158]
push eax
push ecx
call fcn.004086e1
push eax
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetDateFormatW]
mov esi, eax
test esi, esi
je 0x41a3ee
inc esi
lea eax, [esi + esi]
push eax
push dword [0x43573c]
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
pop ecx
test eax, eax
je 0x41a408
push esi
push eax
mov dword [0x43573c], eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x158]
mov dword [0x435740], esi
push eax
xor esi, esi
push esi
call fcn.004086e1
push eax
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetDateFormatW]
test eax, eax
je 0x41a3f9
mov esi, dword [0x43573c]
jmp 0x4068f8
push 9
pop ecx
lea edi, [ebp - 0x1a0]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x174]
lea ecx, [ebp - 0x1a0]
call fcn.004246f7
jmp 0x4067fd
push dword [0x42d578]
mov edx, esi
lea ecx, [ebp - 0x148]
call fcn.0040f2e0
jmp 0x406862
xor eax, eax
add esi, edi
test ebx, ebx
sete al
mov ebx, eax
jmp 0x4068a6
push 0x64
pop eax
cmp cx, ax
jne 0x41a39d
xor eax, eax
mov dword [ebp - 0x164], eax
cmp edx, 3
jle 0x41a3e3
mov edx, dword [ebp - 0x160]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x160], eax
mov ax, word [ecx]
add ecx, edi
cmp ax, word [ebp - 0x15c]
jne 0x41a3b3
sub ecx, dword [ebp - 0x160]
add esi, 6
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push esi
call sub.msvcrt.dll_memmove
add esp, 0xc
jmp 0x4068a6
mov esi, dword [ebp - 0x160]
jmp 0x4068a6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor ecx, ecx
push ecx
jmp 0x41a400
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push esi
mov dword [0x435798], eax
push eax
jmp 0x41a40d
xor eax, eax
push eax
push 8
call fcn.00407834
pop ecx
pop ecx
xor eax, eax
jmp 0x40697c
movzx edx, word [ebp - 0x158]
movzx esi, word [ebp - 0x156]
movzx edi, word [ebp - 0x152]
mov dword [ebp - 0x15c], edx
cmp dword [ebp - 0x168], eax
jne 0x41a44d
mov eax, edx
xor edx, edx
push 0x64
pop ecx
div ecx
mov dword [ebp - 0x15c], edx
mov eax, dword [0x42d57c]
cmp eax, 2
jne 0x41a467
mov eax, edx
mov edx, edi
mov edi, esi
mov dword [ebp - 0x15c], edx
mov esi, eax
jmp 0x41a472
cmp eax, 1
jne 0x41a472
mov eax, esi
mov esi, edi
mov edi, eax
mov ecx, dword [0x435740]
cmp ecx, 0x20
jge 0x41a4ad
push 0x40
push dword [0x43573c]
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
pop ecx
test eax, eax
jne 0x41a497
push eax
jmp 0x41a40b
mov edx, dword [ebp - 0x15c]
push 0x20
pop ecx
mov dword [0x43573c], eax
mov dword [0x435740], ecx
jmp 0x41a4b2
mov eax, dword [0x43573c]
push edx
mov edx, 0x43b9c0
push edx
push edi
push edx
push esi
push 0x4039ec
push ecx
push eax
call fcn.004099ff
add esp, 0x20
push 2
pop edi
jmp 0x406a59
cmp dword [ebp - 0x164], 0
jne 0x41a4eb
push esi
push 0x4039c8
call fcn.00409890
pop ecx
pop ecx
jmp 0x41a50a
call fcn.00409381
test al, al
lea eax, [ebp - 0x48]
je 0x41a4fb
push eax
push esi
jmp 0x41a4fd
push esi
push eax
push 0x403984
call fcn.00409890
add esp, 0xc
mov ebx, eax
jmp 0x40697a
push esi
call fcn.0040f2e0
mov edx, dword [ebp + 0xc]
mov ecx, ebx
push 0x40233c
call fcn.0040fb80
lea eax, [ebp - 0x48]
push eax
jmp 0x40695d
mov edx, dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.0040f2e0
jmp 0x406967