Function at 0x40d7d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42a018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
push str.ShadowOptions
lea ecx, [ebp - 0x24]
mov word [ebp - 0x24], si
call sub.MFC80U.DLL_Ordinal_807
mov byte [ebp - 4], 2
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 0xc], edx
mov eax, dword [ecx + 0xc]
push edi
call eax
test eax, eax
jne 0x40dc07
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x40dc07
mov dword [ebp - 0x10], esi
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 3
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x40dbf1
cmp eax, esi
je 0x40dbf1
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.City
call edi
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push esi
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x40d8ad
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call dword [0x41a1b8]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push str.Country
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
call edx
test eax, eax
jne 0x40d8e3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push eax
add ecx, 4
call dword [0x41a1b8]
push ebx
call esi
push str.Dark
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x40d90c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
push ebx
call esi
push str.DaylightSavings
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x40d93a
cmp word [ebp - 0x1c], 1
mov edx, dword [ebp + 8]
sete cl
mov byte [edx + 0xc], cl
push ebx
call esi
push str.DisplayNorth
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x40d968
cmp word [ebp - 0x1c], 1
mov edx, dword [ebp + 8]
sete cl
mov byte [edx + 0xd], cl
push ebx
call esi
push str.DisplayOnAllFaces
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x40d996
cmp word [ebp - 0x1c], 1
mov edx, dword [ebp + 8]
sete cl
mov byte [edx + 0xe], cl
push ebx
call esi
push str.DisplayOnGroundPlane
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x40d9c4
cmp word [ebp - 0x1c], 1
mov edx, dword [ebp + 8]
sete cl
mov byte [edx + 0xf], cl
push ebx
call esi
push str.DisplayShadows
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x40d9f2
cmp word [ebp - 0x1c], 1
mov edx, dword [ebp + 8]
sete cl
mov byte [edx + 0x10], cl
push ebx
call esi
push str.EdgesCastShadows
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x40da20
cmp word [ebp - 0x1c], 1
mov edx, dword [ebp + 8]
sete cl
mov byte [edx + 0x11], cl
push ebx
call esi
push 0x41c0d8
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x40da49
fld qword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
fstp qword [ecx + 0x18]
push ebx
call esi
push str.Light
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
call edx
test eax, eax
jne 0x40da72
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
push ebx
call esi
push 0x41c0f8
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
call edx
test eax, eax
jne 0x40da9b
fld qword [ebp - 0x1c]
mov eax, dword [ebp + 8]
fstp qword [eax + 0x28]
push ebx
call esi
push str.NorthAngle
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x40dac4
fld qword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
fstp qword [ecx + 0x30]
push ebx
call esi
push str.ShadowTime
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
call edx
test eax, eax
jne 0x40daed
fld qword [ebp - 0x1c]
mov eax, dword [ebp + 8]
fstp qword [eax + 0x38]
push ebx
call esi
push str.SunRise
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x40db16
fld qword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
fstp qword [ecx + 0x40]
push ebx
call esi
push str.SunSet
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
call edx
test eax, eax
jne 0x40db3f
fld qword [ebp - 0x1c]
mov eax, dword [ebp + 8]
fstp qword [eax + 0x48]
push ebx
call esi
push str.TZOffset
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jne 0x40db68
fld qword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
fstp qword [ecx + 0x50]
push ebx
call esi
push str.UseSunForAllShading
call edi
mov edi, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [ebp - 0x24]
push ecx
push edi
push eax
call edx
test eax, eax
jne 0x40db96
cmp word [ebp - 0x1c], 1
mov ecx, dword [ebp + 8]
sete al
mov byte [ecx + 0x58], al
push edi
call esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40dbac
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40dbc9
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, esi
mov byte [ebp - 4], 2
je 0x40dc01
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x24]
push eax
jmp 0x40dc0b
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x40dc24
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8