Function at 0x406b11
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x4310b4]
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 0x41dc8b
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 [0x4397cd], al
je 0x41dd57
mov dword [ebp - 0x160], eax
mov esi, 0x80
push esi
lea eax, [ebp - 0x148]
push eax
push 0x1f
call fcn.00407cf2
push eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41dcac
mov ax, word [ebp - 0x148]
lea esi, [ebp - 0x148]
push 2
pop edi
test ax, ax
je 0x406c29
mov ebx, dword [ebp - 0x160]
push 0x64
movzx ecx, ax
pop eax
cmp cx, 0x27
je 0x41dcc4
test ebx, ebx
jne 0x406c14
cmp cx, ax
je 0x406d03
cmp cx, 0x4d
je 0x406d03
add esi, edi
movzx eax, word [esi]
push 0x64
mov ecx, eax
test ax, ax
pop eax
jne 0x406bf3
mov ebx, dword [ebp - 0x16c]
mov esi, dword [0x4397c8]
mov edi, dword [0x4397c4]
call fcn.00407cf2
push esi
push edi
lea ecx, [ebp - 0x148]
xor edi, edi
push ecx
lea ecx, [ebp - 0x158]
push ecx
push edi
push eax
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetDateFormatW]
test eax, eax
je 0x406d59
mov esi, dword [0x4397c4]
test esi, esi
je 0x406d59
movzx ecx, word [ebp - 0x154]
call fcn.00405b30
push eax
push 0x20
pop edx
lea ecx, [ebp - 0x48]
call fcn.0040dfe0
test ebx, ebx
je 0x41de0e
cmp dword [ebp - 0x164], 0
je 0x41de6a
cmp dword [ebp - 0x168], 1
jne 0x41de6a
call fcn.00408994
mov edx, dword [ebp + 0xc]
mov ecx, ebx
test al, al
jne 0x41de4c
lea eax, [ebp - 0x48]
push eax
call fcn.0040dfe0
mov edx, dword [ebp + 0xc]
mov ecx, ebx
push 0x402454
call fcn.0040ebf0
push dword [0x4397c4]
mov edx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040ebf0
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x406ce1
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.00417b90
leave
ret 8
xor eax, eax
mov edx, eax
add esi, edi
inc edx
cmp word [esi], cx
je 0x406d07
mov eax, edx
mov dword [ebp - 0x160], esi
neg eax
lea esi, [esi + eax*2]
cmp edx, 1
jne 0x41dcd4
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, word [ebp - 0x15c]
jne 0x406d2a
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 0x406c16
push edi
push edi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x158]
push eax
push edi
call fcn.00407cf2
push eax
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetDateFormatW]
mov esi, eax
test esi, esi
je 0x41dd35
inc esi
lea eax, [esi + esi]
push eax
push dword [0x4397c4]
call dword [sym.imp.msvcrt.dll_realloc]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41dd44
mov dword [0x4397c4], edi
mov dword [0x4397c8], esi
call fcn.00407cf2
push esi
push edi
lea ecx, [ebp - 0x148]
xor edi, edi
push ecx
lea ecx, [ebp - 0x158]
push ecx
push edi
push eax
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetDateFormatW]
test eax, eax
je 0x41dd35
mov esi, dword [0x4397c4]
jmp 0x406c6a
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.00427ead
jmp 0x406b6d
push dword [0x431600]
mov edx, esi
lea ecx, [ebp - 0x148]
call fcn.0040dfe0
jmp 0x406bd2
xor eax, eax
add esi, edi
test ebx, ebx
sete al
mov ebx, eax
jmp 0x406c16
push 0x64
pop eax
cmp cx, ax
jne 0x41dce4
xor eax, eax
mov dword [ebp - 0x164], eax
cmp edx, 3
jle 0x41dd2a
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 0x41dcfa
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 0x406c16
mov esi, dword [ebp - 0x160]
jmp 0x406c16
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push edi
mov dword [0x439820], eax
push eax
jmp 0x41dd49
xor eax, eax
push eax
push 8
call fcn.004128ff
pop ecx
pop ecx
xor eax, eax
jmp 0x406cf2
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 0x41dd89
mov eax, edx
xor edx, edx
push 0x64
pop ecx
div ecx
mov dword [ebp - 0x15c], edx
mov eax, dword [0x431604]
cmp eax, 2
jne 0x41dda3
mov eax, edx
mov edx, edi
mov edi, esi
mov dword [ebp - 0x15c], edx
mov esi, eax
jmp 0x41ddae
cmp eax, 1
jne 0x41ddae
mov eax, esi
mov esi, edi
mov edi, eax
mov ecx, dword [0x4397c8]
cmp ecx, 0x20
jge 0x41dde9
push 0x40
push dword [0x4397c4]
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
pop ecx
test eax, eax
jne 0x41ddd3
push eax
jmp 0x41dd47
mov edx, dword [ebp - 0x15c]
push 0x20
pop ecx
mov dword [0x4397c4], eax
mov dword [0x4397c8], ecx
jmp 0x41ddee
mov eax, dword [0x4397c4]
push edx
mov edx, 0x43fa40
push edx
push edi
push edx
push esi
push 0x403e54
push ecx
push eax
call fcn.00409041
add esp, 0x20
xor edi, edi
jmp 0x406dd0
cmp dword [ebp - 0x164], 0
jne 0x41de26
push esi
push 0x403e30
call fcn.00408ec2
pop ecx
pop ecx
jmp 0x41de45
call fcn.00408994
test al, al
lea eax, [ebp - 0x48]
je 0x41de36
push eax
push esi
jmp 0x41de38
push esi
push eax
push 0x403dec
call fcn.00408ec2
add esp, 0xc
mov ebx, eax
jmp 0x406cf0
push esi
call fcn.0040dfe0
mov edx, dword [ebp + 0xc]
mov ecx, ebx
push 0x402454
call fcn.0040ebf0
lea eax, [ebp - 0x48]
push eax
jmp 0x406cd4
mov edx, dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.0040dfe0
jmp 0x406cde