Function at 0x405c94
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 - 0x164], edx
mov dword [ebp - 0x160], 1
push edi
test esi, esi
jne 0x418eb9
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.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_2_1.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
cmp byte [0x443cd9], al
je 0x418f7d
mov edi, eax
mov esi, 0x80
push esi
lea eax, [ebp - 0x148]
mov dword [ebp - 0x15c], edi
push eax
push 0x1f
call fcn.00413854
push eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x418eda
lea esi, [ebp - 0x148]
cmp word [ebp - 0x148], di
je 0x405d89
push 0x64
pop edx
xor eax, eax
movzx ecx, word [esi]
cmp ecx, 0x27
je 0x418ef2
test edi, edi
jne 0x405d81
cmp cx, dx
je 0x405e66
cmp ecx, 0x4d
je 0x405e66
add esi, 2
cmp word [esi], ax
jne 0x405d5f
push dword [0x42d5a0]
lea eax, [ebp - 0x148]
xor edi, edi
push dword [0x42d59c]
push eax
lea eax, [ebp - 0x158]
push eax
push edi
call fcn.00413854
push eax
call dword [sym.imp.api_ms_win_core_datetime_l1_1_1.dll_GetDateFormatW]
test eax, eax
je 0x405ece
mov esi, dword [0x42d59c]
test esi, esi
je 0x405ece
movzx eax, word [ebp - 0x154]
sub eax, edi
jne 0x419034
mov eax, 0x42f638
push eax
push 0x20
pop edx
lea ecx, [ebp - 0x48]
call fcn.00410820
test ebx, ebx
je 0x419089
cmp dword [ebp - 0x160], 0
je 0x4190e5
cmp dword [ebp - 0x164], 1
jne 0x4190e5
call fcn.00408a47
mov edx, dword [ebp + 0xc]
mov ecx, ebx
test al, al
jne 0x4190c7
lea eax, [ebp - 0x48]
push eax
call fcn.00410820
mov edx, dword [ebp + 0xc]
mov ecx, ebx
push 0x402318
call fcn.00410770
push esi
mov edx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.00410770
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x405e42
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.00416ce0
mov esp, ebp
pop ebp
ret 8
mov edx, eax
add esi, 2
inc edx
cmp word [esi], cx
je 0x405e68
mov eax, edx
mov dword [ebp - 0x16c], esi
neg eax
mov dword [ebp - 0x168], esi
mov edi, esi
lea esi, [esi + eax*2]
cmp edx, 1
jne 0x418f09
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x405e96
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 2]
push esi
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
add esi, 4
mov edi, dword [ebp - 0x15c]
push 0x64
pop edx
xor eax, eax
jmp 0x405d84
push edi
push edi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x158]
push eax
push edi
call fcn.00413854
push eax
call dword [sym.imp.api_ms_win_core_datetime_l1_1_1.dll_GetDateFormatW]
mov esi, eax
test esi, esi
je 0x418f5d
inc esi
lea eax, [esi + esi]
push eax
push dword [0x42d59c]
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
pop ecx
test eax, eax
je 0x418f6c
push esi
push eax
mov dword [0x42d59c], eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x158]
mov dword [0x42d5a0], esi
push eax
push edi
call fcn.00413854
push eax
call dword [sym.imp.api_ms_win_core_datetime_l1_1_1.dll_GetDateFormatW]
test eax, eax
je 0x418f5d
mov esi, dword [0x42d59c]
jmp 0x405dc8
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.00424047
jmp 0x405cea
push dword [0x42f808]
mov edx, esi
lea ecx, [ebp - 0x148]
call fcn.00410820
jmp 0x405d4b
xor eax, eax
add esi, 2
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x15c], edi
jmp 0x405ec7
push 0x64
pop eax
cmp cx, ax
jne 0x418f19
xor eax, eax
mov dword [ebp - 0x160], eax
cmp edx, 3
jle 0x418f52
lea ecx, [edi + 2]
xor edx, edx
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x418f23
sub edi, ecx
add esi, 6
sar edi, 1
lea eax, [edi*2 + 2]
push eax
push dword [ebp - 0x168]
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
jmp 0x405ebe
mov esi, dword [ebp - 0x16c]
jmp 0x405ebe
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
push edi
mov dword [0x443d00], eax
push eax
jmp 0x418f6f
push edi
push 8
call fcn.00414802
pop ecx
pop ecx
xor eax, eax
jmp 0x405e53
movzx edx, word [ebp - 0x158]
movzx esi, word [ebp - 0x156]
movzx edi, word [ebp - 0x152]
mov dword [ebp - 0x15c], edx
cmp dword [ebp - 0x164], eax
jne 0x418faf
mov eax, edx
xor edx, edx
push 0x64
pop ecx
div ecx
mov dword [ebp - 0x15c], edx
mov eax, dword [0x42d548]
cmp eax, 2
jne 0x418fc9
mov eax, edx
mov edx, edi
mov edi, esi
mov dword [ebp - 0x15c], edx
mov esi, eax
jmp 0x418fd4
cmp eax, 1
jne 0x418fd4
mov eax, esi
mov esi, edi
mov edi, eax
mov ecx, dword [0x42d5a0]
cmp ecx, 0x20
jge 0x41900f
push 0x40
push dword [0x42d59c]
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
pop ecx
test eax, eax
jne 0x418ff9
push eax
jmp 0x418f6d
mov edx, dword [ebp - 0x15c]
push 0x20
pop ecx
mov dword [0x42d59c], eax
mov dword [0x42d5a0], ecx
jmp 0x419014
mov eax, dword [0x42d59c]
push edx
mov edx, 0x42f81c
push edx
push edi
push edx
push esi
push 0x403728
push ecx
push eax
call fcn.0040c4ef
add esp, 0x20
xor edi, edi
jmp 0x405f40
sub eax, 1
je 0x41907f
sub eax, 1
je 0x419075
sub eax, 1
je 0x41906b
sub eax, 1
je 0x419061
sub eax, 1
je 0x419057
mov eax, 0x42f678
jmp 0x405ddc
mov eax, 0x42f6b8
jmp 0x405ddc
mov eax, 0x42f6f8
jmp 0x405ddc
mov eax, 0x42f738
jmp 0x405ddc
mov eax, 0x42f778
jmp 0x405ddc
mov eax, 0x42f7b8
jmp 0x405ddc
cmp dword [ebp - 0x160], 0
jne 0x4190a1
push esi
push 0x402010
call fcn.0040c37c
pop ecx
pop ecx
jmp 0x4190c0
call fcn.00408a47
test al, al
lea eax, [ebp - 0x48]
je 0x4190b1
push eax
push esi
jmp 0x4190b3
push esi
push eax
push 0x40324c
call fcn.0040c37c
add esp, 0xc
mov ebx, eax
jmp 0x405e51
push esi
call fcn.00410820
mov edx, dword [ebp + 0xc]
mov ecx, ebx
push 0x402318
call fcn.00410770
lea eax, [ebp - 0x48]
push eax
jmp 0x405e35
mov edx, dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.00410820
jmp 0x405e3f