Function at 0x408590
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
sub esp, 0x344
mov eax, dword [0x418cbc]
mov dword [esp + 0x340], eax
call fcn.004064c0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoft
push 0x80000001
call dword [0x41400c]
test eax, eax
jne 0x408847
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [0x414010]
lea ecx, [esp + 0x14]
push ecx
push str.DateTime
push edx
call edi
test eax, eax
jne 0x40883b
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push str.TimeZones
push ecx
call edi
test eax, eax
jne 0x408830
mov ecx, dword [esp + 0x10]
push ebp
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push str.BalloonTZ
push ecx
mov dword [esp + 0x20], 4
call dword [0x414008]
test eax, eax
mov ebp, dword [esp + 0x354]
jne 0x40863f
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x1240], edx
jmp 0x408649
mov dword [ebp + 0x1240], 0xffffffff
mov eax, dword [0x41935c]
test eax, eax
jle 0x408824
push ebx
push esi
mov ebx, 0x800
lea esi, [ebp + 0x11c]
lea eax, [ebx - 0x7ff]
push eax
push str.TimeZone_d
lea ecx, [esp + 0x1c8]
push 0xc8
push ecx
call fcn.00405700
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c4]
push eax
push ecx
call edi
test eax, eax
jne 0x408808
lea edx, [esp + 0x10]
push edx
lea edi, [esi - 0x11c]
push edi
push eax
push eax
mov eax, dword [esp + 0x24]
push str.TimeZone
push eax
mov dword [esp + 0x28], 0x100
call dword [0x414008]
test eax, eax
je 0x4086de
mov ecx, dword [0x41946c]
push 0x80
push edi
push ebx
push ecx
call dword [0x4142b0]
mov edx, dword [ebp + 0x1274]
push edi
push edx
call fcn.00404fd0
add esp, 8
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40871f
mov ecx, dword [esp + 0x2c]
test ecx, ecx
mov dword [esi], ecx
mov eax, dword [ebp + 0x1274]
jle 0x408710
test eax, eax
je 0x408710
mov eax, dword [eax]
dec ecx
test ecx, ecx
jg 0x408705
add eax, 4
push eax
push 0x80
push edi
call fcn.00401f70
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea edi, [esi - 0x1c]
push edi
push 0
push 0
push str.CityName
push ecx
mov dword [esp + 0x28], 0x1c
call dword [0x414008]
test eax, eax
je 0x40875b
mov eax, dword [0x41946c]
push 0xe
push edi
lea edx, [ebx + 0x10]
push edx
push eax
call dword [0x4142b0]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push str.Daylight
push eax
mov dword [esp + 0x28], 4
call dword [0x414008]
test eax, eax
jne 0x40878b
mov eax, dword [esp + 0x18]
jmp 0x4087cd
mov ecx, dword [0x41946c]
push 0xc8
lea edx, [esp + 0x34]
push edx
lea eax, [ebx + 0x20]
push eax
push ecx
mov word [esp + 0x40], 0
call dword [0x4142b0]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push 0x414690
push eax
call fcn.0040cdb8
add esp, 0xc
cmp eax, 1
jne 0x4087d7
mov eax, dword [esp + 0x28]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 4], ecx
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edx
mov edx, dword [esp + 0x35c]
push eax
push edi
lea ecx, [ebx - 0x800]
push ecx
push ebp
push edx
call fcn.004083d0
mov eax, dword [esp + 0x2c]
add esp, 0x18
push eax
call dword [0x414014]
mov edi, dword [0x414010]
mov eax, dword [0x41935c]
inc ebx
lea ecx, [ebx - 0x800]
add esi, 0x124
cmp ecx, eax
jl 0x408663
pop esi
pop ebx
mov edx, dword [esp + 0x14]
push edx
call dword [0x414014]
pop ebp
mov eax, dword [esp + 0x14]
push eax
call dword [0x414014]
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x414014]
pop edi
mov ecx, dword [esp + 0x340]
mov eax, 1
call fcn.0040c9bf
add esp, 0x344
ret